Documentation ¶
Index ¶
Constants ¶
View Source
const GenerateSubnetMaxTries = 100
Variables ¶
This section is empty.
Functions ¶
func GetIPRangesFromSubnet ¶
func GetIPRangesFromSubnet(subnet *sdknetwork.Subnet) []*net.IPNet
GetIPRangesFromSubnet converts a given azure subnet to a list if IPNets. Because an az subnet can cover multiple ipranges, we need to return a slice instead of just a single ip range. This function never errors. If something goes wrong, it instead returns an empty list.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
type InternalClient ¶
type InternalClient interface { Get(ctx context.Context, resourceGroupName string, resourceName string) (*api.OpenShiftCluster, error) CreateOrUpdateAndWait(ctx context.Context, resourceGroupName string, resourceName string, parameters *api.OpenShiftCluster) error DeleteAndWait(ctx context.Context, resourceGroupName string, resourceName string) error }
func NewInternalClient ¶
func NewInternalClient(log *logrus.Entry, environment env.Core, authorizer autorest.Authorizer) InternalClient
Click to show internal directories.
Click to hide internal directories.