general

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 23 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 GetServiceByResourceName added in v0.2.4

func GetServiceByResourceName(ctx context.Context, k cluster.KubernetesInterface, resourceName string, opts *options.DaemonOptions) (string, error)

func LockAndFetchService added in v0.2.4

func LockAndFetchService(ctx context.Context, k cluster.KubernetesInterface, serviceName, namespace string, times int) (*coreV1.Service, error)

func MeshActionFlag

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

func NewCliAuthor

func NewCliAuthor() []cli.Author

NewCliAuthor return cli author

func ProvideActionFlag

func ProvideActionFlag(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, svc *coreV1.Service, 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