services

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 CreateMD5HashOfString(stringToConvert string) string

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 EnsureStackscript

func EnsureStackscript(ctx context.Context, machineScope *scope.MachineScope) (int, error)

func GetDomainID added in v0.4.0

func GetDomainID(ctx context.Context, mscope *scope.MachineScope) (int, error)

GetDomainID gets the domains linode id

func GetMachinePublicIP added in v0.4.0

func GetMachinePublicIP(ctx context.Context, mscope *scope.MachineScope) (string, error)

GetMachinePublicIP gets the machines public IP

func IsDomainRecordOwner added in v0.4.0

func IsDomainRecordOwner(ctx context.Context, mscope *scope.MachineScope, hostname, target string, domainID int) (bool, error)

func RevokeObjectStorageKeys

func RevokeObjectStorageKeys(ctx context.Context, bScope *scope.ObjectStorageBucketScope) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL