cluster-api-provider-aws: sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/services Index | Files | Directories

package services

import "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/services"

Index

Package Files

interfaces.go

Constants

const (
    // TemporaryResourceID is the name used temporarily when creating AWS resources
    TemporaryResourceID = "temporary-resource-id"
    // AnyIPv4CidrBlock is the CIDR block to match all IPv4 addresses
    AnyIPv4CidrBlock = "0.0.0.0/0"
)

type ASGInterface Uses

type ASGInterface interface {
    ASGIfExists(id *string) (*expinfrav1.AutoScalingGroup, error)
    GetASGByName(scope *scope.MachinePoolScope) (*expinfrav1.AutoScalingGroup, error)
    CreateASG(scope *scope.MachinePoolScope) (*expinfrav1.AutoScalingGroup, error)
    UpdateASG(scope *scope.MachinePoolScope) error
    UpdateResourceTags(resourceID *string, create, remove map[string]string) error
    DeleteASGAndWait(id string) error
}

ASGInterface encapsulates the methods exposed to the machinepool actuator

type EC2MachineInterface Uses

type EC2MachineInterface interface {
    InstanceIfExists(id *string) (*infrav1.Instance, error)
    TerminateInstance(id string) error
    CreateInstance(scope *scope.MachineScope, userData []byte) (*infrav1.Instance, error)
    GetRunningInstanceByTags(scope *scope.MachineScope) (*infrav1.Instance, error)

    GetCoreSecurityGroups(machine *scope.MachineScope) ([]string, error)
    GetInstanceSecurityGroups(instanceID string) (map[string][]string, error)
    UpdateInstanceSecurityGroups(id string, securityGroups []string) error
    UpdateResourceTags(resourceID *string, create, remove map[string]string) error

    TerminateInstanceAndWait(instanceID string) error
    DetachSecurityGroupsFromNetworkInterface(groups []string, interfaceID string) error

    DiscoverLaunchTemplateAMI(scope *scope.MachinePoolScope) (*string, error)
    GetLaunchTemplate(id string) (*expinfrav1.AWSLaunchTemplate, error)
    CreateLaunchTemplate(scope *scope.MachinePoolScope, imageID *string, userData []byte) (string, error)
    CreateLaunchTemplateVersion(scope *scope.MachinePoolScope, imageID *string, userData []byte) error
    DeleteLaunchTemplate(id string) error
    LaunchTemplateNeedsUpdate(scope *scope.MachinePoolScope, incoming *expinfrav1.AWSLaunchTemplate, existing *expinfrav1.AWSLaunchTemplate) (bool, error)
}

EC2MachineInterface encapsulates the methods exposed to the machine actuator

type SecretInterface Uses

type SecretInterface interface {
    Delete(m *scope.MachineScope) error
    Create(m *scope.MachineScope, data []byte) (string, int32, error)
    UserData(secretPrefix string, chunks int32, region string, endpoints []scope.ServiceEndpoint) ([]byte, error)
}

SecretInterface encapsulated the methods exposed to the machine actuator

Directories

PathSynopsis
autoscaling
autoscaling/mock_autoscalingifacePackage mock_autoscalingiface is a generated GoMock package.
ec2
ec2/mock_ec2ifaceRun go generate to regenerate this mock.
eks
eks/iam
eks/mock_eksifaceRun go generate to regenerate this mock.
elb
elb/mock_elbifaceRun go generate to regenerate this mock.
elb/mock_resourcegroupstaggingapiifaceRun go generate to regenerate this mock.
iamauth
mock_servicesPackage mock_services is a generated GoMock package.
network
secretsmanager
securitygroup
ssm
sts
userdata
wait

Package services imports 3 packages (graph) and is imported by 8 packages. Updated 2020-11-22. Refresh now. Tools for package owners.