meta

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MPL-2.0 Imports: 7 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 NamespaceExtension added in v0.3.0

type NamespaceExtension struct{}

NamespaceExtension provides auxiliary methods for Namespace.

func (NamespaceExtension) ResourceDefinition added in v0.3.0

func (NamespaceExtension) ResourceDefinition() 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

ResourceDefinition provides metadata about namespaces.

func NewResourceDefinition

func NewResourceDefinition(spec ResourceDefinitionSpec) (*ResourceDefinition, error)

NewResourceDefinition initializes a ResourceDefinition resource.

type ResourceDefinitionExtension added in v0.3.0

type ResourceDefinitionExtension struct{}

ResourceDefinitionExtension provides auxiliary methods for ResourceDefinition.

func (ResourceDefinitionExtension) ResourceDefinition added in v0.3.0

ResourceDefinition implements core.ResourceDefinitionProvider interface.

type ResourceDefinitionProvider

type ResourceDefinitionProvider interface {
	ResourceDefinition() ResourceDefinitionSpec
}

ResourceDefinitionProvider is implemented by resources which can be registered automatically.

type ResourceDefinitionSpec

type ResourceDefinitionSpec = spec.ResourceDefinitionSpec

ResourceDefinitionSpec provides ResourceDefinition definition.

type ResourceWithRD added in v0.3.1

type ResourceWithRD interface {
	ResourceDefinitionProvider
	resource.Resource
}

ResourceWithRD is a resource providing resource definition.

ResourceWithRD allows to pull resource namespace and type from the RD.

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