config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchConfigFilePath

func SearchConfigFilePath() (string, error)

Types

type Config

type Config struct {
	DefaultPodName string  `yaml:"defaultPodName" default:"norden"`
	DefaultImage   string  `yaml:"defaultImage" default:"norden"`
	Images         []Image `yaml:"images"`
}

func Load

func Load() (*Config, error)

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) GetImage

func (c *Config) GetImage() *Image

type Image

type Image struct {
	Name             string        `yaml:"name"`
	Image            string        `yaml:"image"`
	ImagePullPolicy  v1.PullPolicy `yaml:"imagePullPolicy" default:"IfNotPresent"`
	Command          []string      `yaml:"command"`
	Args             []string      `yaml:"args"`
	InteractiveShell []string      `yaml:"interactiveShell"`
}

func NewDefaultImage

func NewDefaultImage() *Image

Jump to

Keyboard shortcuts

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