template

package
v0.0.0-...-e3664d2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditEnabler

type AuditEnabler interface {
	AuditEnabled() bool
	AuditFileAbsolutePath() string
}

type AuditPolicyFileTemplate

type AuditPolicyFileTemplate struct {
	// contains filtered or unexported fields
}

func NewAuditPolicyTemplate

func NewAuditPolicyTemplate() *AuditPolicyFileTemplate

func (*AuditPolicyFileTemplate) Execute

func (k *AuditPolicyFileTemplate) Execute(w io.Writer) error

func (*AuditPolicyFileTemplate) Filename

func (k *AuditPolicyFileTemplate) Filename() string

func (*AuditPolicyFileTemplate) Populate

func (k *AuditPolicyFileTemplate) Populate(v interface{}) error

type CpuMemoryGetter

type CpuMemoryGetter interface {
	GetCPUs() int
	GetMemory() int
}

type DefaultPasswordGetter

type DefaultPasswordGetter interface {
	GetDefaultPassword() string
}

type ExportPortsGetter

type ExportPortsGetter interface {
	GetExportPorts() []machine.ExportPortPair
}

type GpuGetter

type GpuGetter interface {
	GetGPUs() int
}

type KindFileTemplate

type KindFileTemplate struct {
	Name        string
	KubeAPIIP   string
	KubeAPIPort int
	UseGPU      bool

	ExportPorts           []machine.ExportPortPair
	AuditEnabled          bool
	AuditFileAbsolutePath string
	LocalPath             string
	Workers               []Worker
	NodeLabels            []string
	// contains filtered or unexported fields
}

func NewKindTemplate

func NewKindTemplate() *KindFileTemplate

func (*KindFileTemplate) Execute

func (k *KindFileTemplate) Execute(w io.Writer) error

func (*KindFileTemplate) Filename

func (k *KindFileTemplate) Filename() string

func (*KindFileTemplate) Populate

func (k *KindFileTemplate) Populate(v interface{}) error

type KubeAPIIPGetter

type KubeAPIIPGetter interface {
	GetKubeAPIIP() string
}

type KubeAPIPortGetter

type KubeAPIPortGetter interface {
	GetKubeAPIPort() int
}

type LocalPathGetter

type LocalPathGetter interface {
	LocalPath() string
}

type NameGetter

type NameGetter interface {
	GetName() string
}

type NodeLabelsGetter

type NodeLabelsGetter interface {
	GetNodeLabels() []machine.NodeLabel
}

type SSHPortGetter

type SSHPortGetter interface {
	GetSSHPort() int
}

type TemplateExecutor

type TemplateExecutor interface {
	Filename() string
	Execute(io.Writer) error
	Populate(interface{}) error
}

type Worker

type Worker struct {
	Id        string
	UseGPU    bool
	LocalPath string
}

type WorkersGetter

type WorkersGetter interface {
	GetWorkers() []Worker
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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