Documentation ¶
Index ¶
- Constants
- Variables
- func AwaitLBWorkRequest(ctx context.Context, networkLoadBalancerClient nlb.NetworkLoadBalancerClient, ...) (*networkloadbalancer.WorkRequest, error)
- func BuildClusterTags(clusterUUID string) map[string]string
- func GetBaseLineOcpuOptimizationEnum(baseLineOcpuOptmimizationString string) (core.LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, error)
- func GetDefaultClusterTags() map[string]string
- func GetOPCRetryToken(format string, values ...interface{}) *string
- func IsNotFound(err error) bool
Constants ¶
View Source
const ( WorkRequestPollInterval = 5 * time.Second WorkRequestTimeout = 2 * time.Minute MaxOPCRetryTokenBytes = 64 )
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is for simulation during testing, OCI SDK does not have a way to create Service Errors
Functions ¶
func AwaitLBWorkRequest ¶
func AwaitLBWorkRequest(ctx context.Context, networkLoadBalancerClient nlb.NetworkLoadBalancerClient, workRequestId *string) (*networkloadbalancer.WorkRequest, error)
AwaitLBWorkRequest waits for the LB work request to either succeed, fail. See k8s.io/apimachinery/pkg/util/wait
func BuildClusterTags ¶
BuildClusterTags uses the default tags and adds the ClusterUUID tag
func GetBaseLineOcpuOptimizationEnum ¶
func GetBaseLineOcpuOptimizationEnum(baseLineOcpuOptmimizationString string) (core.LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, error)
GetBaseLineOcpuOptimizationEnum iterates over the valid baseline OCPUs to validate the passed in value
func GetDefaultClusterTags ¶
GetDefaultClusterTags creates and returns a map of the default tags for all clusters
func GetOPCRetryToken ¶
GetOPCRetryToken truncates the values input and returns the OPC retry token
func IsNotFound ¶
IsNotFound returns true if the given error indicates that a resource could not be found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.