ape

package
v0.0.0-...-42a0fc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) GetKind

func (x *Chain) GetKind() isChain_Kind

func (*Chain) GetRaw

func (x *Chain) GetRaw() []byte

func (*Chain) MarshalEasyJSON

func (x *Chain) MarshalEasyJSON(out *jwriter.Writer)

func (*Chain) MarshalJSON

func (x *Chain) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Chain) MarshalProtobuf

func (x *Chain) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*Chain) SetKind

func (x *Chain) SetKind(v isChain_Kind)

func (*Chain) SetRaw

func (x *Chain) SetRaw(v *Chain_Raw)

func (*Chain) StableSize

func (x *Chain) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*Chain) UnmarshalEasyJSON

func (x *Chain) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*Chain) UnmarshalJSON

func (x *Chain) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*Chain) UnmarshalProtobuf

func (x *Chain) UnmarshalProtobuf(src []byte) (err error)

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 Chain_Raw

type Chain_Raw struct {
	Raw []byte
}

func (*Chain_Raw) GetRaw

func (x *Chain_Raw) GetRaw() []byte

func (*Chain_Raw) SetRaw

func (x *Chain_Raw) SetRaw(v []byte)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL