ape

package
v0.0.0-...-7bdc78f Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Chain_Kind_not_set_case case_Chain_Kind = 0
View Source
const Chain_Raw_case case_Chain_Kind = 1

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,
	}
)

Enum value maps for TargetType.

View Source
var File_api_ape_grpc_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Chain

type Chain struct {

	// Types that are valid to be assigned to Kind:
	//
	//	*Chain_Raw
	Kind isChain_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

Chain is a chain of rules defined for a specific target.

func (*Chain) ClearKind

func (x *Chain) ClearKind()

func (*Chain) ClearRaw

func (x *Chain) ClearRaw()

func (*Chain) GetKind

func (x *Chain) GetKind() isChain_Kind

func (*Chain) GetRaw

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

func (*Chain) HasKind

func (x *Chain) HasKind() bool

func (*Chain) HasRaw

func (x *Chain) HasRaw() bool

func (*Chain) ProtoMessage

func (*Chain) ProtoMessage()

func (*Chain) ProtoReflect

func (x *Chain) ProtoReflect() protoreflect.Message

func (*Chain) Reset

func (x *Chain) Reset()

func (*Chain) SetRaw

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

func (*Chain) String

func (x *Chain) String() string

func (*Chain) WhichKind

func (x *Chain) WhichKind() case_Chain_Kind

type ChainTarget

type ChainTarget struct {
	Type *TargetType `protobuf:"varint,1,opt,name=type,enum=frostfs.v2.ape.TargetType" json:"type,omitempty"`
	Name *string     `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// contains filtered or unexported fields
}

ChainTarget is an object to which a rule chain is defined.

func (*ChainTarget) ClearName

func (x *ChainTarget) ClearName()

func (*ChainTarget) ClearType

func (x *ChainTarget) ClearType()

func (*ChainTarget) GetName

func (x *ChainTarget) GetName() string

func (*ChainTarget) GetType

func (x *ChainTarget) GetType() TargetType

func (*ChainTarget) HasName

func (x *ChainTarget) HasName() bool

func (*ChainTarget) HasType

func (x *ChainTarget) HasType() bool

func (*ChainTarget) ProtoMessage

func (*ChainTarget) ProtoMessage()

func (*ChainTarget) ProtoReflect

func (x *ChainTarget) ProtoReflect() protoreflect.Message

func (*ChainTarget) Reset

func (x *ChainTarget) Reset()

func (*ChainTarget) SetName

func (x *ChainTarget) SetName(v string)

func (*ChainTarget) SetType

func (x *ChainTarget) SetType(v TargetType)

func (*ChainTarget) String

func (x *ChainTarget) String() string

type ChainTarget_builder

type ChainTarget_builder struct {
	Type *TargetType
	Name *string
	// contains filtered or unexported fields
}

func (ChainTarget_builder) Build

func (b0 ChainTarget_builder) Build() *ChainTarget

type Chain_Raw

type Chain_Raw struct {
	// Raw representation of a serizalized rule chain.
	Raw []byte `protobuf:"bytes,1,opt,name=raw,oneof"`
}

type Chain_builder

type Chain_builder struct {

	// Fields of oneof Kind:
	// Raw representation of a serizalized rule chain.
	Raw []byte
	// contains filtered or unexported fields
}

func (Chain_builder) Build

func (b0 Chain_builder) Build() *Chain

type TargetType

type TargetType int32

TargetType is a type target to which a rule chain is defined.

const (
	TargetType_UNDEFINED TargetType = 0
	TargetType_NAMESPACE TargetType = 1
	TargetType_CONTAINER TargetType = 2
	TargetType_USER      TargetType = 3
	TargetType_GROUP     TargetType = 4
)

func (TargetType) Descriptor

func (TargetType) Descriptor() protoreflect.EnumDescriptor

func (TargetType) Enum

func (x TargetType) Enum() *TargetType

func (TargetType) Number

func (x TargetType) Number() protoreflect.EnumNumber

func (TargetType) String

func (x TargetType) String() string

func (TargetType) Type

Jump to

Keyboard shortcuts

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