kratos

package
v0.0.0-...-585cebd Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// YamlExt is the default yaml extension
	YamlExt = ".yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kratos

type Kratos struct {
	*k8s.Client
	*config.Config
}

Kratos contains info for deployment

func New

func New(confFile, kubeconfig string) (*Kratos, error)

New return a kratos struct

func (*Kratos) CheckDependency

func (k *Kratos) CheckDependency() error

CheckDependency check if all dependency are met

func (*Kratos) Create

func (k *Kratos) Create(name, namespace string) error

Create the deployment of all objects

func (*Kratos) CreateInit

func (k *Kratos) CreateInit(file string) error

CreateInit create sample configuration file

func (*Kratos) Delete

func (k *Kratos) Delete(name, namespace string) error

Delete all objects of the deployment

func (*Kratos) GetList

func (k *Kratos) GetList(namespace string) ([]string, error)

GetList return a list of kratos deployed release name

func (*Kratos) IsReleaseExist

func (k *Kratos) IsReleaseExist(name, namespace string) (bool, error)

IsReleaseExist check if a release of an app exist in the list of release

func (*Kratos) PrintList

func (k *Kratos) PrintList(namespace string) error

PrintList list deployment to stdout

func (*Kratos) SaveConfigToDisk

func (k *Kratos) SaveConfigToDisk(name, namespace, destination string) error

SaveConfigToDisk get config from secret and write it to disk

Jump to

Keyboard shortcuts

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