Documentation
¶
Index ¶
- func AddIPToDNS(ctx context.Context, mscope *scope.MachineScope) error
- func AddNodeToNB(ctx context.Context, logger logr.Logger, machineScope *scope.MachineScope) error
- func CreateDomainRecord(ctx context.Context, mscope *scope.MachineScope, hostname, target string, ...) error
- func CreateMD5HashOfString(stringToConvert string) string
- func CreateNodeBalancer(ctx context.Context, clusterScope *scope.ClusterScope, logger logr.Logger) (*linodego.NodeBalancer, error)
- func CreateNodeBalancerConfigs(ctx context.Context, clusterScope *scope.ClusterScope, logger logr.Logger) ([]*linodego.NodeBalancerConfig, error)
- func CreateUpdateDomainRecord(ctx context.Context, mscope *scope.MachineScope, hostname, target string, ...) error
- func DeleteDomainRecord(ctx context.Context, mscope *scope.MachineScope, hostname, target string, ...) error
- func DeleteIPFromDNS(ctx context.Context, mscope *scope.MachineScope) error
- func DeleteNodeFromNB(ctx context.Context, logger logr.Logger, machineScope *scope.MachineScope) error
- func EnsureObjectStorageBucket(ctx context.Context, bScope *scope.ObjectStorageBucketScope) (*linodego.ObjectStorageBucket, error)
- func EnsureStackscript(ctx context.Context, machineScope *scope.MachineScope) (int, error)
- func GetDomainID(ctx context.Context, mscope *scope.MachineScope) (int, error)
- func GetMachinePublicIP(ctx context.Context, mscope *scope.MachineScope) (string, error)
- func GetObjectStorageKeys(ctx context.Context, bScope *scope.ObjectStorageBucketScope) ([2]*linodego.ObjectStorageKey, error)
- func IsDomainRecordOwner(ctx context.Context, mscope *scope.MachineScope, hostname, target string, ...) (bool, error)
- func RevokeObjectStorageKeys(ctx context.Context, bScope *scope.ObjectStorageBucketScope) error
- func RotateObjectStorageKeys(ctx context.Context, bScope *scope.ObjectStorageBucketScope) ([scope.NumAccessKeys]*linodego.ObjectStorageKey, error)
- func UpdateDomainRecord(ctx context.Context, mscope *scope.MachineScope, hostname, target string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddIPToDNS ¶ added in v0.4.0
func AddIPToDNS(ctx context.Context, mscope *scope.MachineScope) error
AddIPToDNS creates the A and TXT record for the machine
func AddNodeToNB ¶
func AddNodeToNB( ctx context.Context, logger logr.Logger, machineScope *scope.MachineScope, ) error
AddNodeToNB adds a backend Node on the Node Balancer configuration
func CreateDomainRecord ¶ added in v0.4.0
func CreateDomainRecord(ctx context.Context, mscope *scope.MachineScope, hostname, target string, ttl, domainID int, recordType linodego.DomainRecordType) error
func CreateMD5HashOfString ¶ added in v0.4.0
func CreateNodeBalancer ¶
func CreateNodeBalancer(ctx context.Context, clusterScope *scope.ClusterScope, logger logr.Logger) (*linodego.NodeBalancer, error)
CreateNodeBalancer creates a new NodeBalancer if one doesn't exist
func CreateNodeBalancerConfigs ¶ added in v0.4.0
func CreateNodeBalancerConfigs( ctx context.Context, clusterScope *scope.ClusterScope, logger logr.Logger, ) ([]*linodego.NodeBalancerConfig, error)
CreateNodeBalancerConfigs creates NodeBalancer configs if it does not exist
func CreateUpdateDomainRecord ¶ added in v0.4.0
func CreateUpdateDomainRecord(ctx context.Context, mscope *scope.MachineScope, hostname, target string, ttl, domainID int, recordType linodego.DomainRecordType) error
func DeleteDomainRecord ¶ added in v0.4.0
func DeleteDomainRecord(ctx context.Context, mscope *scope.MachineScope, hostname, target string, ttl, domainID int, recordType linodego.DomainRecordType) error
func DeleteIPFromDNS ¶ added in v0.4.0
func DeleteIPFromDNS(ctx context.Context, mscope *scope.MachineScope) error
DeleteIPFromDNS deletes the A and TXT record for the machine
func DeleteNodeFromNB ¶
func DeleteNodeFromNB( ctx context.Context, logger logr.Logger, machineScope *scope.MachineScope, ) error
DeleteNodeFromNB removes a backend Node from the Node Balancer configuration
func EnsureObjectStorageBucket ¶
func EnsureObjectStorageBucket(ctx context.Context, bScope *scope.ObjectStorageBucketScope) (*linodego.ObjectStorageBucket, error)
func EnsureStackscript ¶
func GetDomainID ¶ added in v0.4.0
GetDomainID gets the domains linode id
func GetMachinePublicIP ¶ added in v0.4.0
GetMachinePublicIP gets the machines public IP
func GetObjectStorageKeys ¶
func GetObjectStorageKeys(ctx context.Context, bScope *scope.ObjectStorageBucketScope) ([2]*linodego.ObjectStorageKey, error)
func IsDomainRecordOwner ¶ added in v0.4.0
func RevokeObjectStorageKeys ¶
func RevokeObjectStorageKeys(ctx context.Context, bScope *scope.ObjectStorageBucketScope) error
func RotateObjectStorageKeys ¶
func RotateObjectStorageKeys(ctx context.Context, bScope *scope.ObjectStorageBucketScope) ([scope.NumAccessKeys]*linodego.ObjectStorageKey, error)
func UpdateDomainRecord ¶ added in v0.4.0
func UpdateDomainRecord(ctx context.Context, mscope *scope.MachineScope, hostname, target string, ttl, domainID, domainRecordID int, recordType linodego.DomainRecordType) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.