config

package
v0.0.0-...-b86aca0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InitcontainersTemplate = `{"command": "CMD","image": "IMAGE","name": "tool", "volumeMounts": [{"mountPath": "/tools","name": "tool-volume"}]}`
	EMPTYDIR_TAMPLATE      = `{"emptyDir": {},"name": "tool-volume"}`
	VOLUMEMOUNTS_TEMPLATE  = `"volumeMounts": [{"mountPath": "/tools","name": "tool-volume"}]`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name            string   `json:"Name"`
	Image           string   `json:"Image"`
	Command         []string `json:"Command"`
	ImagePullPolicy string   `json:"ImagePullPolicy"`
}

type InitContainerConfig

type InitContainerConfig struct {
	VolumeMount VolumeMount
	Container   Container
	Volume      Volume
}

type Tool

type Tool struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

type ToolConfig

type ToolConfig struct {
	Image string    `json:"image"`
	Tools toolsList `json:"tools"`
	// contains filtered or unexported fields
}

func NewToolConfig

func NewToolConfig() ToolConfig

func (*ToolConfig) GetTool

func (me *ToolConfig) GetTool(name string) Tool

type Volume

type Volume struct {
	Name string `json:"Name"`
}

type VolumeMount

type VolumeMount struct {
	Name      string `json:"Name"`
	ReadOnly  bool   `json ReadOnly`
	MountPath string `json MountPath`
}

Jump to

Keyboard shortcuts

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