configutil

package
v0.8.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AdminConfigTemplate = `` /* 774-byte string literal not displayed */

)

Variables

View Source
var (
	FlytectlConfig = f.FilePathJoin(f.UserHomeDir(), ".flyte", "config-sandbox.yaml")
	ConfigFile     = f.FilePathJoin(f.UserHomeDir(), ".flyte", "config.yaml")
	Kubeconfig     = f.FilePathJoin(f.UserHomeDir(), ".flyte", "k3s", "k3s.yaml")
)

Functions

func ConfigCleanup

func ConfigCleanup() error

ConfigCleanup will remove the sandbox config from Flyte dir

func GetTemplate added in v0.5.23

func GetTemplate() string

GetTemplate returns cluster config

func SetupConfig

func SetupConfig(filename, templateStr string, templateSpec ConfigTemplateSpec) error

SetupConfig download the Flyte sandbox config

Types

type ConfigTemplateSpec

type ConfigTemplateSpec struct {
	Host       string
	Insecure   bool
	Console    string
	DataConfig *DataConfig
}

type DataConfig added in v0.8.0

type DataConfig struct {
	Endpoint  string
	AccessKey string
	SecretKey string
}

Jump to

Keyboard shortcuts

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