Help us shape the future of Go! Take the 2026 Go Developer Survey

meta

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Metadata

type Metadata struct {

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

General metadata about a configuration object. Typically references either an implicit default configuration or a Kubernetes resource.

func (*Metadata) Descriptor deprecated

func (*Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetDefault

func (x *Metadata) GetDefault() string

func (*Metadata) GetKind

func (x *Metadata) GetKind() isMetadata_Kind

func (*Metadata) GetResource

func (x *Metadata) GetResource() *Resource

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

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

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type Metadata_Default

type Metadata_Default struct {
	// A name describing a default/implicit configuration.
	//
	// For example, a policy default name like `all-authenticated` describes an
	// implicit controller-implementedc policy that does not exist as a cluster
	// resource.
	Default string `protobuf:"bytes,1,opt,name=default,proto3,oneof"`
}

type Metadata_Resource

type Metadata_Resource struct {
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3,oneof"`
}

type Resource

type Resource struct {
	Group     string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Kind      string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	Name      string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Section   string `protobuf:"bytes,5,opt,name=section,proto3" json:"section,omitempty"`
	Port      uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

References a (e.g., Kubernetes) resource.

func (*Resource) Descriptor deprecated

func (*Resource) Descriptor() ([]byte, []int)

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetGroup

func (x *Resource) GetGroup() string

func (*Resource) GetKind

func (x *Resource) GetKind() string

func (*Resource) GetName

func (x *Resource) GetName() string

func (*Resource) GetNamespace added in v0.9.0

func (x *Resource) GetNamespace() string

func (*Resource) GetPort added in v0.9.0

func (x *Resource) GetPort() uint32

func (*Resource) GetSection added in v0.9.0

func (x *Resource) GetSection() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

Jump to

Keyboard shortcuts

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