Documentation
¶
Index ¶
- type CreateServerCommand
- type CreateSshKeyCommand
- type DeleteServerCommand
- type DeleteSshKeyCommand
- type Executor
- type GetServerCommand
- type GetServersCommand
- type GetSshKeyCommand
- type GetSshKeysCommand
- type PowerOffCommand
- type PowerOnCommand
- type RebootCommand
- type ReserveCommand
- type ResetCommand
- type ShutDownCommand
- type UpdateSshKeyCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateServerCommand ¶
type CreateServerCommand struct {
// contains filtered or unexported fields
}
CreateServerCommand represents command for server provisioning. Use NewCreateServerCommand to initilize command properly.
func NewCreateServerCommand ¶
func NewCreateServerCommand(requester client.Requester, server dto.ProvisionedServer) *CreateServerCommand
NewCreateServerCommand constructs new commmand of this type
func (*CreateServerCommand) Execute ¶
func (command *CreateServerCommand) Execute() (*http.Response, error)
Execute provisions new server
func (*CreateServerCommand) SetRequester ¶
func (command *CreateServerCommand) SetRequester(requester client.Requester)
SetRequester sets requester to the command
func (*CreateServerCommand) SetServer ¶
func (command *CreateServerCommand) SetServer(server dto.ProvisionedServer)
SetServer sets server details to the command
type CreateSshKeyCommand ¶
type CreateSshKeyCommand struct {
// contains filtered or unexported fields
}
CreateSshKeyCommand represents command for sshkey creating. Use NewCreateSshKeyCommand to initilize command properly.
func NewCreateSshKeyCommand ¶
func NewCreateSshKeyCommand(requester client.Requester, sshKey dto.SshKey) *CreateSshKeyCommand
NewCreateSshKeyCommand - constructs new command of this type
func (*CreateSshKeyCommand) Execute ¶
func (command *CreateSshKeyCommand) Execute() (*http.Response, error)
Execute create new ssh key
func (*CreateSshKeyCommand) SetRequester ¶
func (command *CreateSshKeyCommand) SetRequester(requester client.Requester)
SetRequester - sets requester to the command
func (*CreateSshKeyCommand) SetSshKey ¶
func (command *CreateSshKeyCommand) SetSshKey(sshKey dto.SshKey)
SetSshKey - sets sshKey details to the command
type DeleteServerCommand ¶
type DeleteServerCommand struct {
// contains filtered or unexported fields
}
DeleteServerCommand represents command for server deprovisioning
func NewDeleteServerCommand ¶
func NewDeleteServerCommand(requester client.Requester, serverID string) *DeleteServerCommand
NewDeleteServerCommand constructs new commmand of this type
func (*DeleteServerCommand) Execute ¶
func (command *DeleteServerCommand) Execute() (*http.Response, error)
Execute deprovisions the server
func (*DeleteServerCommand) SetRequester ¶
func (command *DeleteServerCommand) SetRequester(requester client.Requester)
SetRequester sets requester to the command
func (*DeleteServerCommand) SetServerID ¶
func (command *DeleteServerCommand) SetServerID(id string)
SetServerID sets server id to the command
type DeleteSshKeyCommand ¶
type DeleteSshKeyCommand struct {
// contains filtered or unexported fields
}
DeleteSshKeyCommand represents command for sshkey deleting
func NewDeleteSshKeyCommand ¶
func NewDeleteSshKeyCommand(requester client.Requester, sshKeyID string) *DeleteSshKeyCommand
NewDeleteSshKeyCommand constructs new commmand of this type
func (*DeleteSshKeyCommand) Execute ¶
func (command *DeleteSshKeyCommand) Execute() (*http.Response, error)
Execute deleting the sshkey
func (*DeleteSshKeyCommand) SetRequester ¶
func (command *DeleteSshKeyCommand) SetRequester(requester client.Requester)
SetRequester sets requester to the command
func (*DeleteSshKeyCommand) SetSshKeyID ¶
func (command *DeleteSshKeyCommand) SetSshKeyID(sshKeyID string)
SetSshKeyID sets sshkey id to the command
type GetServerCommand ¶
type GetServerCommand struct {
// contains filtered or unexported fields
}
GetServerCommand represents command that pulls details about specific server
func NewGetServerCommand ¶
func NewGetServerCommand(requester client.Requester, serverID string) *GetServerCommand
NewGetServerCommand constructs new commmand of this type
func (*GetServerCommand) Execute ¶
func (command *GetServerCommand) Execute() (*http.Response, error)
Execute pulls details about specific server
func (*GetServerCommand) SetRequester ¶
func (command *GetServerCommand) SetRequester(requester client.Requester)
SetRequester sets requester to the command
func (*GetServerCommand) SetServerID ¶
func (command *GetServerCommand) SetServerID(id string)
SetServerID sets server id to the command
type GetServersCommand ¶
type GetServersCommand struct {
// contains filtered or unexported fields
}
GetServersCommand represents command for server retrieval
func NewGetServersCommand ¶
func NewGetServersCommand(requester client.Requester) *GetServersCommand
NewGetServersCommand constructs new commmand of this type
func (*GetServersCommand) Execute ¶
func (command *GetServersCommand) Execute() (*http.Response, error)
Execute retrieves all servers
func (*GetServersCommand) SetRequester ¶
func (command *GetServersCommand) SetRequester(requester client.Requester)
SetRequester sets requester to the command
type GetSshKeyCommand ¶
type GetSshKeyCommand struct {
// contains filtered or unexported fields
}
GetSshKeyCommand represents command that pulls details about specific sshKey
func NewGetSshKeyCommand ¶
func NewGetSshKeyCommand(requester client.Requester, sshKeyID string) *GetSshKeyCommand
NewGetSshKeyCommand constructs new commmand of this type
func (*GetSshKeyCommand) Execute ¶
func (command *GetSshKeyCommand) Execute() (*http.Response, error)
Execute pulls details about specific sshKey
func (*GetSshKeyCommand) SetRequester ¶
func (command *GetSshKeyCommand) SetRequester(requester client.Requester)
SetRequester sets requester to the command
func (*GetSshKeyCommand) SetSshKeyID ¶
func (command *GetSshKeyCommand) SetSshKeyID(id string)
SetSshKeyID sets ssh-key id to the command
type GetSshKeysCommand ¶
type GetSshKeysCommand struct {
// contains filtered or unexported fields
}
GetSshKeysCommand represents command for sshkeys retrieval
func NewGetSshKeysCommand ¶
func NewGetSshKeysCommand(requester client.Requester) *GetSshKeysCommand
NewGetSshKeysCommand constructs new commmand of this type
func (*GetSshKeysCommand) Execute ¶
func (command *GetSshKeysCommand) Execute() (*http.Response, error)
Execute retrieves all ssh-keys
func (*GetSshKeysCommand) SetRequester ¶
func (command *GetSshKeysCommand) SetRequester(requester client.Requester)
SetRequester sets requester to the command
type PowerOffCommand ¶
type PowerOffCommand struct {
// contains filtered or unexported fields
}
PowerOffCommand represents command that powers off the server
func NewPowerOffCommand ¶
func NewPowerOffCommand(requester client.Requester, serverID string) *PowerOffCommand
NewPowerOffCommand constructs new commmand of this type
func (*PowerOffCommand) Execute ¶
func (command *PowerOffCommand) Execute() (*http.Response, error)
Execute powers off the server
func (*PowerOffCommand) SetRequester ¶
func (command *PowerOffCommand) SetRequester(requester client.Requester)
SetRequester sets requester to the command
func (*PowerOffCommand) SetServerID ¶
func (command *PowerOffCommand) SetServerID(id string)
SetServerID sets server id to the command
type PowerOnCommand ¶
type PowerOnCommand struct {
// contains filtered or unexported fields
}
PowerOnCommand represents command that powers on the server
func NewPowerOnCommand ¶
func NewPowerOnCommand(requester client.Requester, serverID string) *PowerOnCommand
NewPowerOnCommand constructs new commmand of this type
func (*PowerOnCommand) Execute ¶
func (command *PowerOnCommand) Execute() (*http.Response, error)
Execute powers on the server
func (*PowerOnCommand) SetRequester ¶
func (command *PowerOnCommand) SetRequester(requester client.Requester)
SetRequester sets requester to the command
func (*PowerOnCommand) SetServerID ¶
func (command *PowerOnCommand) SetServerID(id string)
SetServerID sets server id to the command
type RebootCommand ¶
type RebootCommand struct {
// contains filtered or unexported fields
}
RebootCommand represents command that reboots the server
func NewRebootCommand ¶
func NewRebootCommand(requester client.Requester, serverID string) *RebootCommand
NewRebootCommand constructs new commmand of this type
func (*RebootCommand) Execute ¶
func (command *RebootCommand) Execute() (*http.Response, error)
Execute reboot on the server
func (*RebootCommand) SetRequester ¶
func (command *RebootCommand) SetRequester(requester client.Requester)
SetRequester sets requester to the command
func (*RebootCommand) SetServerID ¶
func (command *RebootCommand) SetServerID(id string)
SetServerID sets server id to the command
type ReserveCommand ¶
type ReserveCommand struct {
// contains filtered or unexported fields
}
ReserveCommand represents command that reserves the server
func NewReserveCommand ¶
func NewReserveCommand(requester client.Requester, server dto.ProvisionedServer) *ReserveCommand
NewReserveCommand constructs new commmand of this type
func (*ReserveCommand) Execute ¶
func (command *ReserveCommand) Execute() (*http.Response, error)
Execute reserve on the server
func (*ReserveCommand) SetRequester ¶
func (command *ReserveCommand) SetRequester(requester client.Requester)
SetRequester sets requester to the command
func (*ReserveCommand) SetServer ¶
func (command *ReserveCommand) SetServer(server dto.ProvisionedServer)
SetServer sets server details to the command
type ResetCommand ¶
type ResetCommand struct {
// contains filtered or unexported fields
}
ResetCommand represents command that resets the server
func NewResetCommand ¶
func NewResetCommand(requester client.Requester, server dto.ProvisionedServer) *ResetCommand
NewResetCommand constructs new commmand of this type
func (*ResetCommand) Execute ¶
func (command *ResetCommand) Execute() (*http.Response, error)
Execute reset on the server
func (*ResetCommand) SetRequester ¶
func (command *ResetCommand) SetRequester(requester client.Requester)
SetRequester sets requester to the command
func (*ResetCommand) SetServer ¶
func (command *ResetCommand) SetServer(server dto.ProvisionedServer)
SetServer sets server details to the command
type ShutDownCommand ¶
type ShutDownCommand struct {
// contains filtered or unexported fields
}
ShutDownCommand represents command that reboots the server
func NewShutDownCommand ¶
func NewShutDownCommand(requester client.Requester, serverID string) *ShutDownCommand
NewShutDownCommand constructs new commmand of this type
func (*ShutDownCommand) Execute ¶
func (command *ShutDownCommand) Execute() (*http.Response, error)
Execute reboot on the server
func (*ShutDownCommand) SetRequester ¶
func (command *ShutDownCommand) SetRequester(requester client.Requester)
SetRequester sets requester to the command
func (*ShutDownCommand) SetServerID ¶
func (command *ShutDownCommand) SetServerID(id string)
SetServerID sets server id to the command
type UpdateSshKeyCommand ¶
type UpdateSshKeyCommand struct {
// contains filtered or unexported fields
}
UpdateSshKeyCommand represents command for sshkey updating. Use NewUpdateSshKeyCommand to initilize command properly.
func NewUpdateSshKeyCommand ¶
func NewUpdateSshKeyCommand(requester client.Requester, sshKey dto.SshKey) *UpdateSshKeyCommand
NewUpdateSshKeyCommand - constructs new command of this type
func (*UpdateSshKeyCommand) Execute ¶
func (command *UpdateSshKeyCommand) Execute() (*http.Response, error)
Execute update the ssh key
func (*UpdateSshKeyCommand) SetRequester ¶
func (command *UpdateSshKeyCommand) SetRequester(requester client.Requester)
SetRequester - sets requester to the command
func (*UpdateSshKeyCommand) SetSshKey ¶
func (command *UpdateSshKeyCommand) SetSshKey(sshKey dto.SshKey)
SetSshKey - sets sshKey details to the command