ape

package
v2.16.1-0...-557267a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TargetTypeToGRPC

func TargetTypeToGRPC(typ TargetType) ape.TargetType

func TargetTypeToGRPCField

func TargetTypeToGRPCField(typ TargetType) ape.TargetType

Types

type Chain

type Chain struct {
	// contains filtered or unexported fields
}

func (*Chain) FromGRPCMessage

func (v2 *Chain) FromGRPCMessage(m grpc.Message) error

func (*Chain) GetKind

func (c *Chain) GetKind() chainKind

func (*Chain) SetKind

func (c *Chain) SetKind(kind chainKind)

func (*Chain) StableMarshal

func (c *Chain) StableMarshal(buf []byte) []byte

func (*Chain) StableSize

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

func (*Chain) ToGRPCMessage

func (v2 *Chain) ToGRPCMessage() grpc.Message

func (*Chain) Unmarshal

func (c *Chain) Unmarshal(data []byte) error

type ChainRaw

type ChainRaw struct {
	Raw []byte
}

func (*ChainRaw) FromGRPCMessage

func (v2 *ChainRaw) FromGRPCMessage(m grpc.Message) error

func (*ChainRaw) GetRaw

func (c *ChainRaw) GetRaw() []byte

func (*ChainRaw) SetRaw

func (c *ChainRaw) SetRaw(raw []byte)

func (*ChainRaw) ToGRPCMessage

func (v2 *ChainRaw) ToGRPCMessage() grpc.Message

type ChainTarget

type ChainTarget struct {
	// contains filtered or unexported fields
}

func (*ChainTarget) FromGRPCMessage

func (v2 *ChainTarget) FromGRPCMessage(m grpc.Message) error

func (*ChainTarget) GetName

func (ct *ChainTarget) GetName() string

func (*ChainTarget) GetTargetType

func (ct *ChainTarget) GetTargetType() TargetType

func (*ChainTarget) MarshalJSON

func (t *ChainTarget) MarshalJSON() ([]byte, error)

func (*ChainTarget) SetName

func (ct *ChainTarget) SetName(name string)

func (*ChainTarget) SetTargetType

func (ct *ChainTarget) SetTargetType(targeType TargetType)

func (*ChainTarget) StableMarshal

func (t *ChainTarget) StableMarshal(buf []byte) []byte

func (*ChainTarget) StableSize

func (t *ChainTarget) StableSize() (size int)

func (*ChainTarget) ToGRPCMessage

func (v2 *ChainTarget) ToGRPCMessage() grpc.Message

func (*ChainTarget) Unmarshal

func (t *ChainTarget) Unmarshal(data []byte) error

func (*ChainTarget) UnmarshalJSON

func (t *ChainTarget) UnmarshalJSON(data []byte) error

type TargetType

type TargetType uint32
const (
	TargetTypeUndefined TargetType = iota
	TargetTypeNamespace
	TargetTypeContainer
	TargetTypeUser
	TargetTypeGroup
)

func TargetTypeFromGRPC

func TargetTypeFromGRPC(typ ape.TargetType) TargetType

func TargetTypeFromGRPCField

func TargetTypeFromGRPCField(typ ape.TargetType) TargetType

func (*TargetType) FromString

func (tt *TargetType) FromString(s string) bool

func (TargetType) String

func (tt TargetType) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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