validation

package
v1.1.0-beta31 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 20 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,
	crdMd map[string]*crdutils.CRDMetadata,
) (checks.CheckContext, error)

func NewTestCheckContext

func NewTestCheckContext(
	client client.Client,
	gmInstallationNamespace string,
	localPort, remotePort uint32,
	serverParams *checks.ServerParams,
	ignoreChecks bool,
	crdMd map[string]*crdutils.CRDMetadata,
) checks.CheckContext

exposed for testing, allows injecting mock k8s client

Types

type InClusterCheckContext

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

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) CRDMetadata

func (c *InClusterCheckContext) CRDMetadata(ctx context.Context, deploymentName string) (*crdutils.CRDMetadata, error)

func (*InClusterCheckContext) Context

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) CRDMetadata

func (c *OutOfClusterCheckContext) CRDMetadata(ctx context.Context, deploymentName string) (*crdutils.CRDMetadata, error)

func (*OutOfClusterCheckContext) Context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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