Documentation
¶
Index ¶
- Constants
- func AddNodeToNB(ctx context.Context, logger logr.Logger, machineScope *scope.MachineScope) error
- func CreateDomainRecord(ctx context.Context, mscope *scope.MachineScope, domainID int, ...) error
- func CreateUpdateDomainRecord(ctx context.Context, mscope *scope.MachineScope, domainID int, ...) error
- func DeleteDomainRecord(ctx context.Context, mscope *scope.MachineScope, domainID int, ...) error
- func DeleteNodeFromNB(ctx context.Context, logger logr.Logger, machineScope *scope.MachineScope) error
- func EnsureDNSEntries(ctx context.Context, mscope *scope.MachineScope, operation string) error
- func EnsureNodeBalancer(ctx context.Context, clusterScope *scope.ClusterScope, logger logr.Logger) (*linodego.NodeBalancer, error)
- func EnsureNodeBalancerConfigs(ctx context.Context, clusterScope *scope.ClusterScope, logger logr.Logger) ([]*linodego.NodeBalancerConfig, 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 GetObjectStorageKeys(ctx context.Context, bScope *scope.ObjectStorageBucketScope) ([2]*linodego.ObjectStorageKey, error)
- func IsDomainRecordOwner(ctx context.Context, mscope *scope.MachineScope, hostname string, domainID int) (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, domainID, domainRecordID int, ...) error
- type DNSEntries
- type DNSOptions
Constants ¶
View Source
const ( DefaultApiserverLBPort = 6443 DefaultKonnectivityLBPort = 8132 )
Variables ¶
This section is empty.
Functions ¶
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, domainID int, dnsEntries DNSOptions) error
func CreateUpdateDomainRecord ¶ added in v0.4.0
func CreateUpdateDomainRecord(ctx context.Context, mscope *scope.MachineScope, domainID int, dnsEntry DNSOptions) error
func DeleteDomainRecord ¶ added in v0.4.0
func DeleteDomainRecord(ctx context.Context, mscope *scope.MachineScope, domainID int, dnsEntry DNSOptions) error
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 EnsureDNSEntries ¶ added in v0.5.0
EnsureDNSEntries ensures the domainrecord is created, updated, or deleted based on operation passed
func EnsureNodeBalancer ¶ added in v0.5.0
func EnsureNodeBalancer(ctx context.Context, clusterScope *scope.ClusterScope, logger logr.Logger) (*linodego.NodeBalancer, error)
EnsureNodeBalancer creates a new NodeBalancer if one doesn't exist or returns the existing NodeBalancer
func EnsureNodeBalancerConfigs ¶ added in v0.5.0
func EnsureNodeBalancerConfigs( ctx context.Context, clusterScope *scope.ClusterScope, logger logr.Logger, ) ([]*linodego.NodeBalancerConfig, error)
EnsureNodeBalancerConfigs creates NodeBalancer configs if it does not exist or returns the existing NodeBalancerConfig
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 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, domainID, domainRecordID int, dnsEntries DNSOptions) error
Types ¶
type DNSEntries ¶ added in v0.5.0
type DNSEntries struct {
// contains filtered or unexported fields
}
type DNSOptions ¶ added in v0.5.0
type DNSOptions struct { Hostname string Target string DNSRecordType linodego.DomainRecordType DNSTTLSec int }
Click to show internal directories.
Click to hide internal directories.