Documentation ¶
Overview ¶
Package namespace is a generated protocol buffer package.
Package namespace defines data model for Kubernetes Namespace.
It is generated from these files:
namespace.proto
It has these top-level messages:
Namespace
Index ¶
Constants ¶
View Source
const (
// NamespaceKeyword defines the keyword identifying Namespace data.
NamespaceKeyword = "namespace"
)
Variables ¶
This section is empty.
Functions ¶
func Key ¶
Key returns the key under which a configuration for the given namespace should be stored in the data-store.
func KeyPrefix ¶
func KeyPrefix() string
KeyPrefix returns the key prefix used in the data-store to save the current state of every known K8s namespace.
func ParseNamespaceFromKey ¶
ParseNamespaceFromKey parses namespace id from the associated data-store key.
Types ¶
type Namespace ¶
type Namespace struct { // Name of the namespace. // Cannot be updated. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // A list of labels attached to this namespace. // +optional Label []*Namespace_Label `protobuf:"bytes,3,rep,name=label" json:"label,omitempty"` }
Namespace provides a scope for resource names.
func (*Namespace) Descriptor ¶
func (*Namespace) GetLabel ¶
func (m *Namespace) GetLabel() []*Namespace_Label
func (*Namespace) ProtoMessage ¶
func (*Namespace) ProtoMessage()
type Namespace_Label ¶
type Namespace_Label struct { Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
Label is a key/value pair attached to an object (namespace in this case). Labels are used to organize and to select subsets of objects.
func (*Namespace_Label) Descriptor ¶
func (*Namespace_Label) Descriptor() ([]byte, []int)
func (*Namespace_Label) GetKey ¶
func (m *Namespace_Label) GetKey() string
func (*Namespace_Label) GetValue ¶
func (m *Namespace_Label) GetValue() string
func (*Namespace_Label) ProtoMessage ¶
func (*Namespace_Label) ProtoMessage()
func (*Namespace_Label) Reset ¶
func (m *Namespace_Label) Reset()
func (*Namespace_Label) String ¶
func (m *Namespace_Label) String() string
Click to show internal directories.
Click to hide internal directories.