kubernetes/vendor/go.opentelemetry.io/otel/attribute/value.go

type Type

type Value

const INVALID

const BOOL

const INT64

const FLOAT64

const STRING

const BOOLSLICE

const INT64SLICE

const FLOAT64SLICE

const STRINGSLICE

// BoolValue creates a BOOL Value.
func BoolValue(v bool) Value {}

// BoolSliceValue creates a BOOLSLICE Value.
func BoolSliceValue(v []bool) Value {}

// IntValue creates an INT64 Value.
func IntValue(v int) Value {}

// IntSliceValue creates an INTSLICE Value.
func IntSliceValue(v []int) Value {}

// Int64Value creates an INT64 Value.
func Int64Value(v int64) Value {}

// Int64SliceValue creates an INT64SLICE Value.
func Int64SliceValue(v []int64) Value {}

// Float64Value creates a FLOAT64 Value.
func Float64Value(v float64) Value {}

// Float64SliceValue creates a FLOAT64SLICE Value.
func Float64SliceValue(v []float64) Value {}

// StringValue creates a STRING Value.
func StringValue(v string) Value {}

// StringSliceValue creates a STRINGSLICE Value.
func StringSliceValue(v []string) Value {}

// Type returns a type of the Value.
func (v Value) Type() Type {}

// AsBool returns the bool value. Make sure that the Value's type is
// BOOL.
func (v Value) AsBool() bool {}

// AsBoolSlice returns the []bool value. Make sure that the Value's type is
// BOOLSLICE.
func (v Value) AsBoolSlice() []bool {}

func (v Value) asBoolSlice() []bool {}

// AsInt64 returns the int64 value. Make sure that the Value's type is
// INT64.
func (v Value) AsInt64() int64 {}

// AsInt64Slice returns the []int64 value. Make sure that the Value's type is
// INT64SLICE.
func (v Value) AsInt64Slice() []int64 {}

func (v Value) asInt64Slice() []int64 {}

// AsFloat64 returns the float64 value. Make sure that the Value's
// type is FLOAT64.
func (v Value) AsFloat64() float64 {}

// AsFloat64Slice returns the []float64 value. Make sure that the Value's type is
// FLOAT64SLICE.
func (v Value) AsFloat64Slice() []float64 {}

func (v Value) asFloat64Slice() []float64 {}

// AsString returns the string value. Make sure that the Value's type
// is STRING.
func (v Value) AsString() string {}

// AsStringSlice returns the []string value. Make sure that the Value's type is
// STRINGSLICE.
func (v Value) AsStringSlice() []string {}

func (v Value) asStringSlice() []string {}

type unknownValueType

// AsInterface returns Value's data as interface{}.
func (v Value) AsInterface() interface{}

// Emit returns a string representation of Value's data.
func (v Value) Emit() string {}

// MarshalJSON returns the JSON encoding of the Value.
func (v Value) MarshalJSON() ([]byte, error) {}