scope

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterScope

type ClusterScope struct {
	logr.Logger

	NifcloudClients
	NifcloudCluster *infrav1alpha2.NifcloudCluster
	Cluster         *clusterv1.Cluster
	// contains filtered or unexported fields
}

ClusterScope

func NewClusterScope

func NewClusterScope(params ClusterScopeParams) (*ClusterScope, error)

NewClusterScope creates a new cluster scope from a specified prams This params gave from each Reconcile

func (*ClusterScope) Close

func (s *ClusterScope) Close() error

func (*ClusterScope) Name

func (s *ClusterScope) Name() string

func (*ClusterScope) Network

func (s *ClusterScope) Network() *infrav1alpha2.Network

func (*ClusterScope) SecurityGroups

type ClusterScopeParams

type ClusterScopeParams struct {
	NifcloudClients
	Client client.Client
	Logger logr.Logger

	Cluster         *clusterv1.Cluster
	NifcloudCluster *infrav1alpha2.NifcloudCluster
}

ClusterScopeParams include input paramater to create new scope for cluster

type MachineScope

type MachineScope struct {
	logr.Logger

	Cluster         *clusterv1.Cluster
	Machine         *clusterv1.Machine
	NifcloudCluster *infrav1alpha2.NifcloudCluster
	NifcloudMachine *infrav1alpha2.NifcloudMachine
	// contains filtered or unexported fields
}

MachineScope

func NewMachineScope

func NewMachineScope(params MachineScopeParams) (*MachineScope, error)

NewMachineScope creates a new machine scope from a specified prams This params gave from each Reconcile

func (*MachineScope) Close

func (m *MachineScope) Close() error

func (*MachineScope) GetBootstrapData

func (m *MachineScope) GetBootstrapData() (string, error)

GetBootstrapData returns bootstrap data from machines

func (*MachineScope) GetInstanceID

func (m *MachineScope) GetInstanceID() *string

func (*MachineScope) GetInstanceIDConved

func (m *MachineScope) GetInstanceIDConved() string

GetInstanceIDConved returns the expression of InstanceID in nifcloud

func (*MachineScope) GetInstanceState

func (m *MachineScope) GetInstanceState() *infrav1alpha2.InstanceState

func (*MachineScope) GetInstanceUID

func (m *MachineScope) GetInstanceUID() (*string, error)

GetInstanceUID returns Instance UID for ProviderID

func (*MachineScope) GetProviderID

func (m *MachineScope) GetProviderID() string

func (*MachineScope) GetRawBootstrapData

func (m *MachineScope) GetRawBootstrapData() []byte

func (*MachineScope) GetRawUserData

func (m *MachineScope) GetRawUserData() ([]byte, error)

GetRawUserData returns userdata of each instance from script template

func (*MachineScope) GetUserData

func (m *MachineScope) GetUserData() (string, error)

func (*MachineScope) IsControlPlane

func (m *MachineScope) IsControlPlane() bool

func (*MachineScope) IsSendBootstrap

func (m *MachineScope) IsSendBootstrap() bool

func (*MachineScope) Name

func (m *MachineScope) Name() string

func (*MachineScope) Namespace

func (m *MachineScope) Namespace() string

func (*MachineScope) Role

func (m *MachineScope) Role() string

func (*MachineScope) SetAddresses

func (m *MachineScope) SetAddresses(addrs []corev1.NodeAddress)

func (*MachineScope) SetErrorMessage

func (m *MachineScope) SetErrorMessage(v error)

func (*MachineScope) SetErrorReason

func (m *MachineScope) SetErrorReason(v capierrors.MachineStatusError)

func (*MachineScope) SetInstanceState

func (m *MachineScope) SetInstanceState(i infrav1alpha2.InstanceState)

func (*MachineScope) SetNotReady

func (m *MachineScope) SetNotReady()

func (*MachineScope) SetProviderID

func (m *MachineScope) SetProviderID(v string)

func (*MachineScope) SetReady

func (m *MachineScope) SetReady()

func (*MachineScope) SetSendBootstrap

func (m *MachineScope) SetSendBootstrap()

func (*MachineScope) UnsetSendBootstrap

func (m *MachineScope) UnsetSendBootstrap()

type MachineScopeParams

type MachineScopeParams struct {
	NifcloudClient  *computing.Client
	Client          client.Client
	Logger          logr.Logger
	Cluster         *clusterv1.Cluster
	Machine         *clusterv1.Machine
	NifcloudCluster *infrav1alpha2.NifcloudCluster
	NifcloudMachine *infrav1alpha2.NifcloudMachine
}

MachineScopeParams include input paramater to create new scope for machine

type NifcloudClients

type NifcloudClients struct {
	Computing cloud.Client
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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