Documentation ¶
Index ¶
- Constants
- func Key(namespace string) string
- func KeyPrefix() string
- func ParseNamespaceFromKey(key string) (namespace string, err error)
- type ID
- type Namespace
- func (*Namespace) Descriptor() ([]byte, []int)
- func (m *Namespace) GetLabel() []*Namespace_Label
- func (m *Namespace) GetName() string
- func (*Namespace) ProtoMessage()
- func (m *Namespace) Reset()
- func (m *Namespace) String() string
- func (m *Namespace) XXX_DiscardUnknown()
- func (m *Namespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Namespace) XXX_Merge(src proto.Message)
- func (m *Namespace) XXX_Size() int
- func (m *Namespace) XXX_Unmarshal(b []byte) error
- type Namespace_Label
- func (*Namespace_Label) Descriptor() ([]byte, []int)
- func (m *Namespace_Label) GetKey() string
- func (m *Namespace_Label) GetValue() string
- func (*Namespace_Label) ProtoMessage()
- func (m *Namespace_Label) Reset()
- func (m *Namespace_Label) String() string
- func (m *Namespace_Label) XXX_DiscardUnknown()
- func (m *Namespace_Label) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Namespace_Label) XXX_Merge(src proto.Message)
- func (m *Namespace_Label) XXX_Size() int
- func (m *Namespace_Label) XXX_Unmarshal(b []byte) error
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,proto3" json:"name,omitempty"` // A list of labels attached to this namespace. // +optional Label []*Namespace_Label `protobuf:"bytes,3,rep,name=label,proto3" json:"label,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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()
func (*Namespace) XXX_DiscardUnknown ¶
func (m *Namespace) XXX_DiscardUnknown()
func (*Namespace) XXX_Marshal ¶
func (*Namespace) XXX_Unmarshal ¶
type Namespace_Label ¶
type Namespace_Label struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*Namespace_Label) XXX_DiscardUnknown ¶
func (m *Namespace_Label) XXX_DiscardUnknown()
func (*Namespace_Label) XXX_Marshal ¶
func (m *Namespace_Label) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Namespace_Label) XXX_Merge ¶
func (m *Namespace_Label) XXX_Merge(src proto.Message)
func (*Namespace_Label) XXX_Size ¶
func (m *Namespace_Label) XXX_Size() int
func (*Namespace_Label) XXX_Unmarshal ¶
func (m *Namespace_Label) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.