Documentation ¶
Index ¶
- Constants
- Variables
- func AwaitLBWorkRequest(ctx context.Context, loadBalancerClient lb.LoadBalancerClient, ...) (*loadbalancer.WorkRequest, error)
- func AwaitNLBWorkRequest(ctx context.Context, networkLoadBalancerClient nlb.NetworkLoadBalancerClient, ...) (*networkloadbalancer.WorkRequest, error)
- func BuildClusterTags(ClusterResourceUID string) map[string]string
- func DerefString(s *string) string
- func GetBaseLineOcpuOptimizationEnum(baseLineOcpuOptmimizationString string) (core.LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, error)
- func GetDefaultClusterTags() map[string]string
- func GetInstanceConfigBaseLineOcpuOptimizationEnum(baseLineOcpuOptmimizationString string) (...)
- func GetOPCRetryToken(format string, values ...interface{}) *string
- func IsNotFound(err error) bool
Constants ¶
const ( WorkRequestPollInterval = 5 * time.Second WorkRequestTimeout = 2 * time.Minute MaxOPCRetryTokenBytes = 64 CreatedBy = "CreatedBy" OCIClusterAPIProvider = "OCIClusterAPIProvider" ClusterResourceIdentifier = "ClusterResourceIdentifier" )
Variables ¶
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, loadBalancerClient lb.LoadBalancerClient, workRequestId *string) (*loadbalancer.WorkRequest, error)
AwaitLBWorkRequest waits for the LBaaS work request to either succeed, fail. See k8s.io/apimachinery/pkg/util/wait
func AwaitNLBWorkRequest ¶ added in v0.9.0
func AwaitNLBWorkRequest(ctx context.Context, networkLoadBalancerClient nlb.NetworkLoadBalancerClient, workRequestId *string) (*networkloadbalancer.WorkRequest, error)
AwaitNLBWorkRequest 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 ClusterResourceUID tag
func DerefString ¶ added in v0.3.0
DerefString returns the string value if the pointer isn't nil, otherwise returns empty string
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 GetInstanceConfigBaseLineOcpuOptimizationEnum ¶ added in v0.4.0
func GetInstanceConfigBaseLineOcpuOptimizationEnum(baseLineOcpuOptmimizationString string) (core.InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, error)
GetInstanceConfigBaseLineOcpuOptimizationEnum iterates over the valid baseline OCPUs to validate the passed in value
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.