model

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelSchemaKind          = "com.hckops.schema.kind"
	LabelTemplateLocal       = "com.hckops.template.local"
	LabelTemplateRemote      = "com.hckops.template.remote" // TODO not used
	LabelTemplateGit         = "com.hckops.template.git"
	LabelTemplateGitUrl      = "com.hckops.template.git.url"
	LabelTemplateGitRevision = "com.hckops.template.git.revision"
	LabelTemplateGitCommit   = "com.hckops.template.git.commit"
	LabelTemplateGitDir      = "com.hckops.template.git.dir"
	LabelTemplateGitName     = "com.hckops.template.git.name"
	LabelTemplateCachePath   = "com.hckops.template.cache.path"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedTemplateInfo

type CachedTemplateInfo struct {
	Path string
}

type CloudOptions

type CloudOptions struct {
	Version  string
	Address  string
	Username string
	Token    string
}

type DockerOptions

type DockerOptions struct {
	NetworkName          string
	IgnoreImagePullError bool
}

type DockerProviderInfo

type DockerProviderInfo struct {
	Network string
	Ip      string
}

type GitTemplateInfo

type GitTemplateInfo struct {
	Url      string
	Revision string
	Commit   string
	Name     string
}

type KubeOptions

type KubeOptions struct {
	InCluster  bool
	ConfigPath string
	Namespace  string
}

type KubeProviderInfo

type KubeProviderInfo struct {
	Namespace string
}

type Labels

type Labels map[string]string

func (Labels) AddDefaultGit

func (l Labels) AddDefaultGit(url, revision, dir string) Labels

func (Labels) AddDefaultLocal

func (l Labels) AddDefaultLocal() Labels

func (Labels) AddGit

func (l Labels) AddGit(path string, commit string) Labels

func (Labels) AddLabel

func (l Labels) AddLabel(key string, value string) Labels

func (Labels) AddLabels

func (l Labels) AddLabels(labels Labels) Labels

func (Labels) AddLocal

func (l Labels) AddLocal(path string) Labels

func (Labels) Exist

func (l Labels) Exist(name string) (string, error)

func (Labels) ToCachedTemplateInfo

func (l Labels) ToCachedTemplateInfo() *CachedTemplateInfo

func (Labels) ToGitTemplateInfo

func (l Labels) ToGitTemplateInfo() *GitTemplateInfo

Jump to

Keyboard shortcuts

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