validation

package
v1.1.0-beta21 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInClusterCheckContext

func NewInClusterCheckContext() (checks.CheckContext, error)

func NewOutOfClusterCheckContext

func NewOutOfClusterCheckContext(
	mgmtKubeConfig string,
	mgmtKubeContext string,
	gmInstallationNamespace string,
	localPort, remotePort uint32,
	serverParams *checks.ServerParams,
	ignoreChecks bool,
) (checks.CheckContext, error)

func NewTestCheckContext

func NewTestCheckContext(
	client client.Client,
	gmInstallationNamespace string,
	localPort, remotePort uint32,
	serverParams *checks.ServerParams,
	ignoreChecks bool,
) (checks.CheckContext, error)

exposed for testing, allows injecting mock k8s client

Types

type InClusterCheckContext

type InClusterCheckContext struct {
	checks.CommonContext
}

func (*InClusterCheckContext) AccessAdminPort

func (c *InClusterCheckContext) AccessAdminPort(ctx context.Context, deployment string, op func(ctx context.Context, adminUrl *url.URL) (error, string)) (error, string)

func (*InClusterCheckContext) Context

func (*InClusterCheckContext) RunChecks

func (c *InClusterCheckContext) RunChecks(ctx context.Context, component checks.Component, st checks.Stage) bool

type OutOfClusterCheckContext

type OutOfClusterCheckContext struct {
	checks.CommonContext
	// contains filtered or unexported fields
}

func (*OutOfClusterCheckContext) AccessAdminPort

func (c *OutOfClusterCheckContext) AccessAdminPort(ctx context.Context, deployment string, op func(ctx context.Context, adminUrl *url.URL) (error, string)) (error, string)

func (*OutOfClusterCheckContext) Context

func (*OutOfClusterCheckContext) RunChecks

func (c *OutOfClusterCheckContext) RunChecks(ctx context.Context, component checks.Component, st checks.Stage) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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