meta

package
v0.2.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MPL-2.0 Imports: 6 Imported by: 47

Documentation

Overview

Package meta provides definition of core metadata resources.

Index

Constants

View Source
const (
	NonSensitive = spec.NonSensitive
	Sensitive    = spec.Sensitive
)

Sensitivity values.

View Source
const NamespaceName resource.Namespace = "meta"

NamespaceName is the name of 'meta' namespace.

View Source
const NamespaceType = resource.Type("Namespaces.meta.cosi.dev")

NamespaceType is the type of Namespace.

View Source
const Owner resource.Owner = "meta"

Owner is the owner for the 'meta' objects.

View Source
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

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

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

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

ResourceDefinition implements core.ResourceDefinitionProvider interface.

type ResourceDefinitionSpec

type ResourceDefinitionSpec = spec.ResourceDefinitionSpec

ResourceDefinitionSpec provides ResourceDefinition definition.

Directories

Path Synopsis
Package spec contains resource specs for the meta resources.
Package spec contains resource specs for the meta resources.

Jump to

Keyboard shortcuts

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