Versions in this module Expand all Collapse all v2 v2.0.0 Mar 20, 2024 Changes in this version + const ProviderName + const ProviderPrefix + const ValidAcmeDomainStatus + func ClearAuthEnvUsername() + func ErrorIfAcmeNotComplete(acme *brightbox.LoadBalancerAcme) error + func ErrorIfNotComplete(lb *brightbox.LoadBalancer, cipID, name string) error + func ErrorIfNotErased(lb *brightbox.LoadBalancer) error + func GetAuthEnvTokenHandler(t *testing.T) *httptest.Server + func IsUpdateLoadBalancerRequired(lb *brightbox.LoadBalancer, newDetails brightbox.LoadBalancerOptions) bool + func MapProviderIDToServerID(providerID string) string + func MapServerIDToProviderID(serverID string) string + func MapZoneHandleToRegion(zoneHandle string) (string, error) + func ResetAuthEnvironment() + func SetAuthEnvAPIURL(value string) + func SetAuthEnvAccount() + func SetAuthEnvClientID() + func SetAuthEnvPassword() + func SetAuthEnvUsername() + type Cloud struct + func MakeTestClient(testClient CloudAccess, testMetadata EC2Metadata) *Cloud + func (c *Cloud) AllocateCloudIP(ctx context.Context, name string) (*brightbox.CloudIP, error) + func (c *Cloud) CloudClient() (CloudAccess, error) + func (c *Cloud) CreateFirewallPolicy(ctx context.Context, group brightbox.ServerGroup) (*brightbox.FirewallPolicy, error) + func (c *Cloud) CreateFirewallRule(ctx context.Context, newDetails brightbox.FirewallRuleOptions) (*brightbox.FirewallRule, error) + func (c *Cloud) CreateLoadBalancer(ctx context.Context, newDetails brightbox.LoadBalancerOptions) (*brightbox.LoadBalancer, error) + func (c *Cloud) CreateServer(ctx context.Context, newDetails brightbox.ServerOptions) (*brightbox.Server, error) + func (c *Cloud) CreateServerGroup(ctx context.Context, name string) (*brightbox.ServerGroup, error) + func (c *Cloud) DestroyCloudIP(ctx context.Context, id string) error + func (c *Cloud) DestroyCloudIPs(ctx context.Context, cloudIPList []brightbox.CloudIP, currentIPID string, ...) error + func (c *Cloud) DestroyFirewallPolicy(ctx context.Context, id string) error + func (c *Cloud) DestroyLoadBalancer(ctx context.Context, id string) error + func (c *Cloud) DestroyServer(ctx context.Context, id string) error + func (c *Cloud) DestroyServerGroup(ctx context.Context, id string) error + func (c *Cloud) EnsureMappedCloudIP(ctx context.Context, lb *brightbox.LoadBalancer, cip *brightbox.CloudIP) error + func (c *Cloud) EnsureOldCloudIPsDeposed(ctx context.Context, cloudIPList []brightbox.CloudIP, currentIPID string, ...) error + func (c *Cloud) GetCloudIPs(ctx context.Context) ([]brightbox.CloudIP, error) + func (c *Cloud) GetConfigMap(ctx context.Context, identifier string) (*brightbox.ConfigMap, error) + func (c *Cloud) GetConfigMaps(ctx context.Context) ([]brightbox.ConfigMap, error) + func (c *Cloud) GetFirewallPolicyByName(ctx context.Context, name string) (*brightbox.FirewallPolicy, error) + func (c *Cloud) GetImageByName(ctx context.Context, name string) (*brightbox.Image, error) + func (c *Cloud) GetLoadBalancerByID(ctx context.Context, id string) (*brightbox.LoadBalancer, error) + func (c *Cloud) GetLoadBalancerByName(ctx context.Context, name string) (*brightbox.LoadBalancer, error) + func (c *Cloud) GetServer(ctx context.Context, id string, notFoundError error) (*brightbox.Server, error) + func (c *Cloud) GetServerGroup(ctx context.Context, identifier string) (*brightbox.ServerGroup, error) + func (c *Cloud) GetServerGroupByName(ctx context.Context, name string) (*brightbox.ServerGroup, error) + func (c *Cloud) GetServerGroups(ctx context.Context) ([]brightbox.ServerGroup, error) + func (c *Cloud) GetServerType(ctx context.Context, identifier string) (*brightbox.ServerType, error) + func (c *Cloud) GetServerTypes(ctx context.Context) ([]brightbox.ServerType, error) + func (c *Cloud) MetadataClient() (EC2Metadata, error) + func (c *Cloud) SyncServerGroup(ctx context.Context, group *brightbox.ServerGroup, newServerIDs []string) (*brightbox.ServerGroup, error) + func (c *Cloud) UpdateFirewallRule(ctx context.Context, newDetails brightbox.FirewallRuleOptions) (*brightbox.FirewallRule, error) + func (c *Cloud) UpdateLoadBalancer(ctx context.Context, newDetails brightbox.LoadBalancerOptions) (*brightbox.LoadBalancer, error) + type CloudAccess interface + AddServersToServerGroup func(context.Context, string, brightbox.ServerGroupMemberList) (*brightbox.ServerGroup, error) + CloudIP func(context.Context, string) (*brightbox.CloudIP, error) + CloudIPs func(context.Context) ([]brightbox.CloudIP, error) + ConfigMap func(context.Context, string) (*brightbox.ConfigMap, error) + ConfigMaps func(context.Context) ([]brightbox.ConfigMap, error) + CreateCloudIP func(context.Context, brightbox.CloudIPOptions) (*brightbox.CloudIP, error) + CreateFirewallPolicy func(context.Context, brightbox.FirewallPolicyOptions) (*brightbox.FirewallPolicy, error) + CreateFirewallRule func(context.Context, brightbox.FirewallRuleOptions) (*brightbox.FirewallRule, error) + CreateLoadBalancer func(context.Context, brightbox.LoadBalancerOptions) (*brightbox.LoadBalancer, error) + CreateServer func(context.Context, brightbox.ServerOptions) (*brightbox.Server, error) + CreateServerGroup func(context.Context, brightbox.ServerGroupOptions) (*brightbox.ServerGroup, error) + DestroyCloudIP func(context.Context, string) (*brightbox.CloudIP, error) + DestroyFirewallPolicy func(context.Context, string) (*brightbox.FirewallPolicy, error) + DestroyLoadBalancer func(context.Context, string) (*brightbox.LoadBalancer, error) + DestroyServer func(context.Context, string) (*brightbox.Server, error) + DestroyServerGroup func(context.Context, string) (*brightbox.ServerGroup, error) + FirewallPolicies func(context.Context) ([]brightbox.FirewallPolicy, error) + Images func(context.Context) ([]brightbox.Image, error) + LoadBalancer func(context.Context, string) (*brightbox.LoadBalancer, error) + LoadBalancers func(context.Context) ([]brightbox.LoadBalancer, error) + MapCloudIP func(context.Context, string, brightbox.CloudIPAttachment) (*brightbox.CloudIP, error) + RemoveServersFromServerGroup func(context.Context, string, brightbox.ServerGroupMemberList) (*brightbox.ServerGroup, error) + Server func(context.Context, string) (*brightbox.Server, error) + ServerGroup func(context.Context, string) (*brightbox.ServerGroup, error) + ServerGroups func(context.Context) ([]brightbox.ServerGroup, error) + ServerType func(context.Context, string) (*brightbox.ServerType, error) + ServerTypes func(context.Context) ([]brightbox.ServerType, error) + UnMapCloudIP func(context.Context, string) (*brightbox.CloudIP, error) + UpdateFirewallRule func(context.Context, brightbox.FirewallRuleOptions) (*brightbox.FirewallRule, error) + UpdateLoadBalancer func(context.Context, brightbox.LoadBalancerOptions) (*brightbox.LoadBalancer, error) + type EC2Metadata interface + GetMetadata func(path string) (string, error) Other modules containing this package github.com/brightbox/k8ssdk