model

package
v0.0.0-...-ae413d2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	Meta           core_model.ResourceMeta
	Spec           core_model.ResourceSpec
	TypeDescriptor core_model.ResourceTypeDescriptor
}

func (*Resource) Descriptor

func (r *Resource) Descriptor() core_model.ResourceTypeDescriptor

func (*Resource) GetMeta

func (r *Resource) GetMeta() core_model.ResourceMeta

func (*Resource) GetSpec

func (r *Resource) GetSpec() core_model.ResourceSpec

func (*Resource) SetMeta

func (r *Resource) SetMeta(meta core_model.ResourceMeta)

func (*Resource) SetSpec

func (r *Resource) SetSpec(spec core_model.ResourceSpec) error

type ResourceMeta

type ResourceMeta struct {
	Mesh             string
	Name             string
	NameExtensions   core_model.ResourceNameExtensions
	Version          string
	CreationTime     time.Time
	ModificationTime time.Time
	Labels           map[string]string
}

func (*ResourceMeta) GetCreationTime

func (m *ResourceMeta) GetCreationTime() time.Time

func (*ResourceMeta) GetLabels

func (m *ResourceMeta) GetLabels() map[string]string

func (*ResourceMeta) GetMesh

func (m *ResourceMeta) GetMesh() string

func (*ResourceMeta) GetModificationTime

func (m *ResourceMeta) GetModificationTime() time.Time

func (*ResourceMeta) GetName

func (m *ResourceMeta) GetName() string

func (*ResourceMeta) GetNameExtensions

func (m *ResourceMeta) GetNameExtensions() core_model.ResourceNameExtensions

func (*ResourceMeta) GetVersion

func (m *ResourceMeta) GetVersion() string

Jump to

Keyboard shortcuts

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