model

package
v0.0.0-...-b5442c7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name    string `toml:"name"`
	Image   string `toml:"image"`
	Command string `toml:"command"`
}

func (Container) Descriptor

func (c Container) Descriptor() *api.Descriptor

func (Container) ToProto

func (c Container) ToProto() *api.Resource

type Pod

type Pod struct {
	Name       string      `toml:"name"`
	Containers []container `toml:"containers"`
}

func (Pod) Descriptor

func (p Pod) Descriptor() *api.Descriptor

func (Pod) ToProto

func (p Pod) ToProto() *api.Resource

type Resource

type Resource interface {
	Descriptor() *api.Descriptor
	ToProto() *api.Resource
}

func UnmarshalByKind

func UnmarshalByKind(data []byte) (Resource, error)

Jump to

Keyboard shortcuts

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