Documentation ¶
Index ¶
- Variables
- type Chain
- func (x *Chain) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *Chain) GetKind() isChain_Kind
- func (x *Chain) GetRaw() []byte
- func (x *Chain) MarshalEasyJSON(out *jwriter.Writer)
- func (x *Chain) MarshalJSON() ([]byte, error)
- func (x *Chain) MarshalProtobuf(dst []byte) []byte
- func (x *Chain) SetKind(v isChain_Kind)
- func (x *Chain) SetRaw(v *Chain_Raw)
- func (x *Chain) StableSize() (size int)
- func (x *Chain) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *Chain) UnmarshalJSON(data []byte) error
- func (x *Chain) UnmarshalProtobuf(src []byte) (err error)
- type ChainTarget
- func (x *ChainTarget) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *ChainTarget) GetName() string
- func (x *ChainTarget) GetType() TargetType
- func (x *ChainTarget) MarshalEasyJSON(out *jwriter.Writer)
- func (x *ChainTarget) MarshalJSON() ([]byte, error)
- func (x *ChainTarget) MarshalProtobuf(dst []byte) []byte
- func (x *ChainTarget) SetName(v string)
- func (x *ChainTarget) SetType(v TargetType)
- func (x *ChainTarget) StableSize() (size int)
- func (x *ChainTarget) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *ChainTarget) UnmarshalJSON(data []byte) error
- func (x *ChainTarget) UnmarshalProtobuf(src []byte) (err error)
- type Chain_Raw
- type TargetType
Constants ¶
This section is empty.
Variables ¶
var ( TargetType_name = map[int32]string{ 0: "UNDEFINED", 1: "NAMESPACE", 2: "CONTAINER", 3: "USER", 4: "GROUP", } TargetType_value = map[string]int32{ "UNDEFINED": 0, "NAMESPACE": 1, "CONTAINER": 2, "USER": 3, "GROUP": 4, } )
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
Kind isChain_Kind
}
func (*Chain) EmitProtobuf ¶
func (x *Chain) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*Chain) MarshalEasyJSON ¶
func (*Chain) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Chain) MarshalProtobuf ¶
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*Chain) StableSize ¶
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*Chain) UnmarshalEasyJSON ¶
func (*Chain) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Chain) UnmarshalProtobuf ¶
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type ChainTarget ¶
type ChainTarget struct { Type TargetType `json:"type"` Name string `json:"name"` }
func (*ChainTarget) EmitProtobuf ¶
func (x *ChainTarget) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*ChainTarget) GetName ¶
func (x *ChainTarget) GetName() string
func (*ChainTarget) GetType ¶
func (x *ChainTarget) GetType() TargetType
func (*ChainTarget) MarshalEasyJSON ¶
func (x *ChainTarget) MarshalEasyJSON(out *jwriter.Writer)
func (*ChainTarget) MarshalJSON ¶
func (x *ChainTarget) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*ChainTarget) MarshalProtobuf ¶
func (x *ChainTarget) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*ChainTarget) SetName ¶
func (x *ChainTarget) SetName(v string)
func (*ChainTarget) SetType ¶
func (x *ChainTarget) SetType(v TargetType)
func (*ChainTarget) StableSize ¶
func (x *ChainTarget) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*ChainTarget) UnmarshalEasyJSON ¶
func (x *ChainTarget) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*ChainTarget) UnmarshalJSON ¶
func (x *ChainTarget) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*ChainTarget) UnmarshalProtobuf ¶
func (x *ChainTarget) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type TargetType ¶
type TargetType int32
const ( TargetType_UNDEFINED TargetType = 0 TargetType_NAMESPACE TargetType = 1 TargetType_CONTAINER TargetType = 2 TargetType_USER TargetType = 3 TargetType_GROUP TargetType = 4 )
func (*TargetType) FromString ¶
func (x *TargetType) FromString(s string) bool
func (TargetType) String ¶
func (x TargetType) String() string