dynamic

package
v0.0.0-...-823d357 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewValidator

func NewValidator(log *logrus.Entry, azEnv *azureclient.AROEnvironment, subscriptionID string, authorizer refreshable.Authorizer, authorizerType AuthorizerType) (*dynamic, error)

Types

type AuthorizerType

type AuthorizerType string
const AuthorizerClusterServicePrincipal AuthorizerType = "cluster"
const AuthorizerFirstParty AuthorizerType = "resource provider"

type Dynamic

type Dynamic interface {
	ValidateVnet(ctx context.Context, location string, subnets []Subnet, additionalCIDRs ...string) error
	ValidateSubnets(ctx context.Context, oc *api.OpenShiftCluster, subnets []Subnet) error
	ValidateProviders(ctx context.Context) error
	ValidateServicePrincipal(ctx context.Context, clientID, clientSecret, tenantID string) error

	ValidateQuota(ctx context.Context, oc *api.OpenShiftCluster) error
}

Dynamic validate in the operator context.

type Subnet

type Subnet struct {
	ID   string
	Path string
}

Jump to

Keyboard shortcuts

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