util

package
v2.4.13 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToK8sArgoClientSet

func ConnectToK8sArgoClientSet() *appclientset.Clientset

func ConnectToK8sClientSet

func ConnectToK8sClientSet() *kubernetes.Clientset

func ConnectToK8sConfig

func ConnectToK8sConfig() *rest.Config

func GetRandomString

func GetRandomString() string

func Parse

func Parse(opts *GenerateOpts, file string) error

Types

type ApplicationOpts

type ApplicationOpts struct {
	Samples         int             `yaml:"samples"`
	SourceOpts      SourceOpts      `yaml:"source"`
	DestinationOpts DestinationOpts `yaml:"destination"`
}

type Bar

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

Bar ...

func (*Bar) Finish

func (bar *Bar) Finish()

func (*Bar) Increment

func (bar *Bar) Increment()

func (*Bar) NewOption

func (bar *Bar) NewOption(start, total int64)

func (*Bar) Play

func (bar *Bar) Play()

type ClusterOpts

type ClusterOpts struct {
	Samples              int    `yaml:"samples"`
	NamespacePrefix      string `yaml:"namespacePrefix"`
	ValuesFilePath       string `yaml:"valuesFilePath"`
	DestinationNamespace string `yaml:"destinationNamespace"`
	ClusterNamePrefix    string `yaml:"clusterNamePrefix"`
}

type DestinationOpts

type DestinationOpts struct {
	Strategy string `yaml:"strategy"`
}

type GenerateOpts

type GenerateOpts struct {
	ApplicationOpts ApplicationOpts `yaml:"application"`
	ClusterOpts     ClusterOpts     `yaml:"cluster"`
	RepositoryOpts  RepositoryOpts  `yaml:"repository"`
	ProjectOpts     ProjectOpts     `yaml:"project"`
	GithubToken     string
	Namespace       string `yaml:"namespace"`
}

type Kube

type Kube struct {
	Namespace string
	Context   string
}

type ProjectOpts

type ProjectOpts struct {
	Samples int `yaml:"samples"`
}

type RepositoryOpts

type RepositoryOpts struct {
	Samples int `yaml:"samples"`
}

type SourceOpts

type SourceOpts struct {
	Strategy string `yaml:"strategy"`
}

Jump to

Keyboard shortcuts

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