ocp

package
v0.0.0-...-e73b65a Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxDetail = base.MaxDetail
)

Variables

View Source
var NotFound = libmodel.NotFound

Errors

Functions

func All

func All() []interface{}

Build all models.

Types

type Base

type Base struct {
	// Object UID.
	UID string `sql:"pk"`
	// Resource version.
	Version string `sql:"d0"`
	// Namespace.
	Namespace string `sql:"key"`
	// Name.
	Name string `sql:"key"`
	// contains filtered or unexported fields
}

Base k8s model.

func (*Base) Labels

func (m *Base) Labels() libmodel.Labels

func (*Base) Pk

func (m *Base) Pk() string

func (*Base) ResourceVersion

func (m *Base) ResourceVersion() uint64

Get kubernetes resource version.

func (*Base) String

func (m *Base) String() string

func (*Base) With

func (m *Base) With(r Resource)

Populate fields with the specified k8s resource.

type InvalidRefError

type InvalidRefError = base.InvalidRefError

type ListOptions

type ListOptions = base.ListOptions

type Model

type Model = base.Model

Types

type Namespace

type Namespace struct {
	Base
	Object core.Namespace `sql:""`
}

Namespace

func (*Namespace) With

func (m *Namespace) With(n *core.Namespace)

type NetworkAttachmentDefinition

type NetworkAttachmentDefinition struct {
	Base
	Object net.NetworkAttachmentDefinition `sql:""`
}

NetworkAttachmentDefinition

func (*NetworkAttachmentDefinition) With

type Provider

type Provider struct {
	Base
	Type   string       `sql:""`
	Object api.Provider `sql:""`
}

Provider

func (*Provider) With

func (m *Provider) With(p *api.Provider)

type Ref

type Ref = base.Ref

type Resource

type Resource interface {
	meta.Object
	runtime.Object
}

k8s Resource.

type StorageClass

type StorageClass struct {
	Base
	Object storage.StorageClass `sql:""`
}

StorageClass

func (*StorageClass) With

func (m *StorageClass) With(s *storage.StorageClass)

type VM

type VM struct {
	Base
	Object cnv.VirtualMachine `sql:""`
}

VM

func (*VM) With

func (m *VM) With(v *cnv.VirtualMachine)

Jump to

Keyboard shortcuts

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