general

package
v0.3.0-beta1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppFlags

func AppFlags(options *options.DaemonOptions, version string) []cli.Flag

AppFlags return app flags

func CleanActionFlag

func CleanActionFlag(options *options.DaemonOptions) []cli.Flag

func CleanupWorkspace

func CleanupWorkspace(cli kt.CliInterface, opts *options.DaemonOptions)

CleanupWorkspace clean workspace

func CombineKubeOpts

func CombineKubeOpts(options *options.DaemonOptions) error

CombineKubeOpts set default options of kubectl if not assign

func ConnectActionFlag

func ConnectActionFlag(options *options.DaemonOptions) []cli.Flag

ConnectActionFlag ...

func CreateShadowAndInbound added in v0.2.4

func CreateShadowAndInbound(ctx context.Context, k cluster.KubernetesInterface, shadowPodName, portsToExpose string,
	labels, annotations map[string]string, options *options.DaemonOptions) error

func ExchangeActionFlag

func ExchangeActionFlag(options *options.DaemonOptions) []cli.Flag

func GetDeploymentByResourceName added in v0.3.0

func GetDeploymentByResourceName(ctx context.Context, k cluster.KubernetesInterface, resourceName, namespace string) (*appV1.Deployment, error)

func GetServiceByResourceName added in v0.2.4

func GetServiceByResourceName(ctx context.Context, k cluster.KubernetesInterface, resourceName, namespace string) (*coreV1.Service, error)

func LockService added in v0.3.0

func LockService(ctx context.Context, k cluster.KubernetesInterface, serviceName, namespace string, times int) error

func MeshActionFlag

func MeshActionFlag(options *options.DaemonOptions) []cli.Flag

func NewCliAuthor

func NewCliAuthor() []cli.Author

NewCliAuthor return cli author

func ParseResourceName added in v0.3.0

func ParseResourceName(resourceName string) (string, string, error)

func PreviewActionFlag added in v0.3.0

func PreviewActionFlag(options *options.DaemonOptions) []cli.Flag

func RecoverOriginalService

func RecoverOriginalService(ctx context.Context, k cluster.KubernetesInterface, svcName, namespace string)

func SetupProcess

func SetupProcess(cli kt.CliInterface, options *options.DaemonOptions, componentName string) (chan os.Signal, error)

SetupProcess write pid file and print setup message

func UnlockService added in v0.2.4

func UnlockService(ctx context.Context, k cluster.KubernetesInterface, serviceName, namespace string)

func UpdateServiceSelector added in v0.2.4

func UpdateServiceSelector(ctx context.Context, k cluster.KubernetesInterface, svcName, namespace string, selector map[string]string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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