Documentation ¶
Index ¶
- type ClusterScope
- type ClusterScopeParams
- type MachineScope
- func (m *MachineScope) Close() error
- func (m *MachineScope) GetBootstrapData() (string, error)
- func (m *MachineScope) GetInstanceID() *string
- func (m *MachineScope) GetInstanceIDConved() string
- func (m *MachineScope) GetInstanceState() *infrav1alpha2.InstanceState
- func (m *MachineScope) GetInstanceUID() (*string, error)
- func (m *MachineScope) GetProviderID() string
- func (m *MachineScope) GetRawBootstrapData() []byte
- func (m *MachineScope) GetRawUserData() ([]byte, error)
- func (m *MachineScope) GetUserData() (string, error)
- func (m *MachineScope) IsControlPlane() bool
- func (m *MachineScope) IsSendBootstrap() bool
- func (m *MachineScope) Name() string
- func (m *MachineScope) Namespace() string
- func (m *MachineScope) Role() string
- func (m *MachineScope) SetAddresses(addrs []corev1.NodeAddress)
- func (m *MachineScope) SetErrorMessage(v error)
- func (m *MachineScope) SetErrorReason(v capierrors.MachineStatusError)
- func (m *MachineScope) SetInstanceState(i infrav1alpha2.InstanceState)
- func (m *MachineScope) SetNotReady()
- func (m *MachineScope) SetProviderID(v string)
- func (m *MachineScope) SetReady()
- func (m *MachineScope) SetSendBootstrap()
- func (m *MachineScope) UnsetSendBootstrap()
- type MachineScopeParams
- type NifcloudClients
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 ¶
func (s *ClusterScope) SecurityGroups() map[infrav1alpha2.SecurityGroupRole]infrav1alpha2.SecurityGroup
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