Documentation ¶
Index ¶
- type ServerRelationManger
- func (c *ServerRelationManger) IsShutdownRequired(ctx context.Context) bool
- func (c *ServerRelationManger) LinkIPv4(ctx context.Context) error
- func (c *ServerRelationManger) LinkIPv6(ctx context.Context) error
- func (c *ServerRelationManger) LinkISOImage(ctx context.Context) error
- func (c *ServerRelationManger) LinkNetworks(ctx context.Context) error
- func (c *ServerRelationManger) LinkStorages(ctx context.Context) error
- func (c *ServerRelationManger) UpdateIPv4Rel(ctx context.Context) error
- func (c *ServerRelationManger) UpdateIPv6Rel(ctx context.Context) error
- func (c *ServerRelationManger) UpdateISOImageRel(ctx context.Context) error
- func (c *ServerRelationManger) UpdateNetworksRel(ctx context.Context) error
- func (c *ServerRelationManger) UpdateStoragesRel(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerRelationManger ¶
type ServerRelationManger struct {
// contains filtered or unexported fields
}
ServerRelationManger is an wrapper of gsclient which is used for managing relations of a server in gridscale terraform provider
func NewServerRelationManger ¶
func NewServerRelationManger(gsc *gsclient.Client, d *schema.ResourceData) *ServerRelationManger
NewServerRelationManger creates a new instance ServerRelationManger
func (*ServerRelationManger) IsShutdownRequired ¶
func (c *ServerRelationManger) IsShutdownRequired(ctx context.Context) bool
IsShutdownRequired checks if server is needed to be shutdown when updating
func (*ServerRelationManger) LinkIPv4 ¶
func (c *ServerRelationManger) LinkIPv4(ctx context.Context) error
LinkIPv4 links IPv4 address to a server
func (*ServerRelationManger) LinkIPv6 ¶
func (c *ServerRelationManger) LinkIPv6(ctx context.Context) error
LinkIPv6 link an IPv6 address to a server
func (*ServerRelationManger) LinkISOImage ¶
func (c *ServerRelationManger) LinkISOImage(ctx context.Context) error
LinkISOImage links an ISO image to a server
func (*ServerRelationManger) LinkNetworks ¶
func (c *ServerRelationManger) LinkNetworks(ctx context.Context) error
LinkNetworks links networks to server
func (*ServerRelationManger) LinkStorages ¶
func (c *ServerRelationManger) LinkStorages(ctx context.Context) error
LinkStorages links storages to a server **Note: The first storage in the list will be automatically set as the boot device
func (*ServerRelationManger) UpdateIPv4Rel ¶
func (c *ServerRelationManger) UpdateIPv4Rel(ctx context.Context) error
UpdateIPv4Rel updates relationship between a server and an IPv4 address
func (*ServerRelationManger) UpdateIPv6Rel ¶
func (c *ServerRelationManger) UpdateIPv6Rel(ctx context.Context) error
UpdateIPv6Rel updates relationship between a server and an IPv6 address
func (*ServerRelationManger) UpdateISOImageRel ¶
func (c *ServerRelationManger) UpdateISOImageRel(ctx context.Context) error
UpdateISOImageRel updates relationship between a server and an ISO image
func (*ServerRelationManger) UpdateNetworksRel ¶
func (c *ServerRelationManger) UpdateNetworksRel(ctx context.Context) error
UpdateNetworksRel updates relationship between a server and networks
func (*ServerRelationManger) UpdateStoragesRel ¶
func (c *ServerRelationManger) UpdateStoragesRel(ctx context.Context) error
UpdateStoragesRel updates relationship between a server and storages