Documentation ¶
Overview ¶
Package meta provides definition of core metadata resources.
Index ¶
Constants ¶
const ( NonSensitive = spec.NonSensitive Sensitive = spec.Sensitive )
Sensitivity values.
const NamespaceName resource.Namespace = "meta"
NamespaceName is the name of 'meta' namespace.
const NamespaceType = resource.Type("Namespaces.meta.cosi.dev")
NamespaceType is the type of Namespace.
const Owner resource.Owner = "meta"
Owner is the owner for the 'meta' objects.
const ResourceDefinitionType = resource.Type("ResourceDefinitions.meta.cosi.dev")
ResourceDefinitionType is the type of ResourceDefinition.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
type Namespace = typed.Resource[NamespaceSpec, NamespaceRD]
Namespace provides metadata about namespaces.
func NewNamespace ¶
func NewNamespace(id resource.ID, spec NamespaceSpec) *Namespace
NewNamespace initializes a Namespace resource.
type NamespaceRD ¶
type NamespaceRD struct{}
NamespaceRD provides auxiliary methods for Namespace.
func (NamespaceRD) ResourceDefinition ¶
func (NamespaceRD) ResourceDefinition(_ resource.Metadata, _ NamespaceSpec) ResourceDefinitionSpec
ResourceDefinition implements core.ResourceDefinitionProvider interface.
type NamespaceSpec ¶
type NamespaceSpec struct {
Description string `yaml:"description"`
}
NamespaceSpec provides Namespace definition.
func (NamespaceSpec) DeepCopy ¶
func (n NamespaceSpec) DeepCopy() NamespaceSpec
DeepCopy generates a deep copy of NamespaceSpec.
func (NamespaceSpec) MarshalProto ¶
func (n NamespaceSpec) MarshalProto() ([]byte, error)
MarshalProto implements ProtoMarshaler.
func (*NamespaceSpec) UnmarshalProto ¶
func (n *NamespaceSpec) UnmarshalProto(protoBytes []byte) error
UnmarshalProto implements protobuf.ResourceUnmarshaler.
type PrintColumn ¶
type PrintColumn = spec.PrintColumn
PrintColumn describes extra columns to print for the resources.
type ResourceDefinition ¶
type ResourceDefinition = typed.Resource[ResourceDefinitionSpec, ResourceDefinitionRD]
ResourceDefinition provides metadata about namespaces.
func NewResourceDefinition ¶
func NewResourceDefinition(spec ResourceDefinitionSpec) (*ResourceDefinition, error)
NewResourceDefinition initializes a ResourceDefinition resource.
type ResourceDefinitionProvider ¶
type ResourceDefinitionProvider interface {
ResourceDefinition() ResourceDefinitionSpec
}
ResourceDefinitionProvider is implemented by resources which can be registered automatically.
type ResourceDefinitionRD ¶
type ResourceDefinitionRD struct{}
ResourceDefinitionRD provides auxiliary methods for ResourceDefinition.
func (ResourceDefinitionRD) ResourceDefinition ¶
func (ResourceDefinitionRD) ResourceDefinition(_ resource.Metadata, _ spec.ResourceDefinitionSpec) ResourceDefinitionSpec
ResourceDefinition implements core.ResourceDefinitionProvider interface.
type ResourceDefinitionSpec ¶
type ResourceDefinitionSpec = spec.ResourceDefinitionSpec
ResourceDefinitionSpec provides ResourceDefinition definition.