Documentation ¶
Overview ¶
Package wrappers provides protobuf wrappers for common teleport map and list types.
Index ¶
- Variables
- func MarshalTraits(traits *Traits) ([]byte, error)
- func UnmarshalTraits(data []byte, traits *Traits) error
- type CustomType
- func (*CustomType) Descriptor() ([]byte, []int)
- func (m *CustomType) Marshal() (dAtA []byte, err error)
- func (m *CustomType) MarshalTo(dAtA []byte) (int, error)
- func (m *CustomType) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CustomType) ProtoMessage()
- func (m *CustomType) Reset()
- func (m *CustomType) Size() (n int)
- func (m *CustomType) String() string
- func (m *CustomType) Unmarshal(dAtA []byte) error
- func (m *CustomType) XXX_DiscardUnknown()
- func (m *CustomType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CustomType) XXX_Merge(src proto.Message)
- func (m *CustomType) XXX_Size() int
- func (m *CustomType) XXX_Unmarshal(b []byte) error
- type LabelValues
- func (*LabelValues) Descriptor() ([]byte, []int)
- func (m *LabelValues) Marshal() (dAtA []byte, err error)
- func (m *LabelValues) MarshalTo(dAtA []byte) (int, error)
- func (m *LabelValues) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LabelValues) ProtoMessage()
- func (m *LabelValues) Reset()
- func (m *LabelValues) Size() (n int)
- func (m *LabelValues) String() string
- func (m *LabelValues) Unmarshal(dAtA []byte) error
- func (m *LabelValues) XXX_DiscardUnknown()
- func (m *LabelValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LabelValues) XXX_Merge(src proto.Message)
- func (m *LabelValues) XXX_Size() int
- func (m *LabelValues) XXX_Unmarshal(b []byte) error
- type StringValues
- func (*StringValues) Descriptor() ([]byte, []int)
- func (m *StringValues) Marshal() (dAtA []byte, err error)
- func (m *StringValues) MarshalTo(dAtA []byte) (int, error)
- func (m *StringValues) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StringValues) ProtoMessage()
- func (m *StringValues) Reset()
- func (m *StringValues) Size() (n int)
- func (m *StringValues) String() string
- func (m *StringValues) Unmarshal(dAtA []byte) error
- func (m *StringValues) XXX_DiscardUnknown()
- func (m *StringValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StringValues) XXX_Merge(src proto.Message)
- func (m *StringValues) XXX_Size() int
- func (m *StringValues) XXX_Unmarshal(b []byte) error
- type Strings
- func (s Strings) Marshal() ([]byte, error)
- func (s Strings) MarshalJSON() ([]byte, error)
- func (s Strings) MarshalTo(data []byte) (int, error)
- func (s Strings) MarshalYAML() (interface{}, error)
- func (s Strings) Size() int
- func (s *Strings) Unmarshal(data []byte) error
- func (s *Strings) UnmarshalJSON(data []byte) error
- func (s *Strings) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Traits
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func MarshalTraits ¶
MarshalTraits will marshal Traits as JSON. Used to embed traits into certificates.
func UnmarshalTraits ¶
UnmarshalTraits will unmarshal JSON traits. Used to embed traits into certificates.
Types ¶
type CustomType ¶
type CustomType struct { // Bytes is the marshalled json data of a struct. Bytes []byte `protobuf:"bytes,1,opt,name=Bytes,proto3" json:"json"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CustomType is a json protobuf representation of a Go struct. This is useful when defining customtypes for use with the (gogoproto.customtype) extension.
func (*CustomType) Descriptor ¶
func (*CustomType) Descriptor() ([]byte, []int)
func (*CustomType) Marshal ¶
func (m *CustomType) Marshal() (dAtA []byte, err error)
func (*CustomType) MarshalToSizedBuffer ¶
func (m *CustomType) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CustomType) ProtoMessage ¶
func (*CustomType) ProtoMessage()
func (*CustomType) Reset ¶
func (m *CustomType) Reset()
func (*CustomType) Size ¶
func (m *CustomType) Size() (n int)
func (*CustomType) String ¶
func (m *CustomType) String() string
func (*CustomType) Unmarshal ¶
func (m *CustomType) Unmarshal(dAtA []byte) error
func (*CustomType) XXX_DiscardUnknown ¶
func (m *CustomType) XXX_DiscardUnknown()
func (*CustomType) XXX_Marshal ¶
func (m *CustomType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CustomType) XXX_Merge ¶
func (m *CustomType) XXX_Merge(src proto.Message)
func (*CustomType) XXX_Size ¶
func (m *CustomType) XXX_Size() int
func (*CustomType) XXX_Unmarshal ¶
func (m *CustomType) XXX_Unmarshal(b []byte) error
type LabelValues ¶
type LabelValues struct { // Values contains key value pairs. Values map[string]StringValues `` /* 143-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LabelValues is a list of key value pairs, where key is a string and value is a list of string values.
func (*LabelValues) Descriptor ¶
func (*LabelValues) Descriptor() ([]byte, []int)
func (*LabelValues) Marshal ¶
func (m *LabelValues) Marshal() (dAtA []byte, err error)
func (*LabelValues) MarshalToSizedBuffer ¶
func (m *LabelValues) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LabelValues) ProtoMessage ¶
func (*LabelValues) ProtoMessage()
func (*LabelValues) Reset ¶
func (m *LabelValues) Reset()
func (*LabelValues) Size ¶
func (m *LabelValues) Size() (n int)
func (*LabelValues) String ¶
func (m *LabelValues) String() string
func (*LabelValues) Unmarshal ¶
func (m *LabelValues) Unmarshal(dAtA []byte) error
func (*LabelValues) XXX_DiscardUnknown ¶
func (m *LabelValues) XXX_DiscardUnknown()
func (*LabelValues) XXX_Marshal ¶
func (m *LabelValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LabelValues) XXX_Merge ¶
func (m *LabelValues) XXX_Merge(src proto.Message)
func (*LabelValues) XXX_Size ¶
func (m *LabelValues) XXX_Size() int
func (*LabelValues) XXX_Unmarshal ¶
func (m *LabelValues) XXX_Unmarshal(b []byte) error
type StringValues ¶
type StringValues struct { Values []string `protobuf:"bytes,1,rep,name=Values,proto3" json:"Values,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
StringValues is a list of strings.
func (*StringValues) Descriptor ¶
func (*StringValues) Descriptor() ([]byte, []int)
func (*StringValues) Marshal ¶
func (m *StringValues) Marshal() (dAtA []byte, err error)
func (*StringValues) MarshalToSizedBuffer ¶
func (m *StringValues) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StringValues) ProtoMessage ¶
func (*StringValues) ProtoMessage()
func (*StringValues) Reset ¶
func (m *StringValues) Reset()
func (*StringValues) Size ¶
func (m *StringValues) Size() (n int)
func (*StringValues) String ¶
func (m *StringValues) String() string
func (*StringValues) Unmarshal ¶
func (m *StringValues) Unmarshal(dAtA []byte) error
func (*StringValues) XXX_DiscardUnknown ¶
func (m *StringValues) XXX_DiscardUnknown()
func (*StringValues) XXX_Marshal ¶
func (m *StringValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StringValues) XXX_Merge ¶
func (m *StringValues) XXX_Merge(src proto.Message)
func (*StringValues) XXX_Size ¶
func (m *StringValues) XXX_Size() int
func (*StringValues) XXX_Unmarshal ¶
func (m *StringValues) XXX_Unmarshal(b []byte) error
type Strings ¶
type Strings []string
Strings is a list of string that can unmarshal from list of strings or a scalar string from scalar yaml or json property
func (Strings) MarshalJSON ¶
MarshalJSON marshals to scalar value if there is only one value in the list to list otherwise
func (Strings) MarshalYAML ¶
MarshalYAML marshals to scalar value if there is only one value in the list, marshals to list otherwise
func (*Strings) UnmarshalJSON ¶
UnmarshalJSON unmarshals scalar string or strings slice to Strings
func (*Strings) UnmarshalYAML ¶
UnmarshalYAML is used to allow Strings to unmarshal from scalar string value or from the list