Versions in this module Expand all Collapse all v1 v1.3.0 Jul 20, 2015 Changes in this version + func ResolveGateway(api *ScalewayAPI, gateway string) (string, error) type ScalewayAPI + func (s *ScalewayAPI) HideAPICredentials(input string) string v1.2.1 Jul 1, 2015 v1.2.0 Jun 29, 2015 Changes in this version + const IdentifierUnknown type ScalewayAPI + func (s *ScalewayAPI) HideApiCredentials(input string) string + func (s *ScalewayAPI) PutResponse(resource string, data interface{}) (*http.Response, error) + func (s *ScalewayAPI) PutVolume(volumeID string, definition ScalewayVolumePutDefinition) error type ScalewayAPIError + Fields map[string][]string + type ScalewayResolverResult struct + Identifier string + Name string + Type int + func (s *ScalewayResolverResult) CodeName() string + func (s *ScalewayResolverResult) TruncIdentifier() string type ScalewayServer + func WaitForServerStopped(api *ScalewayAPI, serverID string) (*ScalewayServer, error) + type ScalewayVolumePutDefinition struct + CreationDate *string + ExportURI *string + Identifier *string + ModificationDate *string + Name *string + Organization *string + Server struct{ ... } + Size *uint64 + VolumeType *string v1.2.0-rc2 Jun 25, 2015 v1.2.0-rc1 Jun 22, 2015 v1.1.0 Jun 12, 2015 Changes in this version + const IdentifierBootscript + const IdentifierImage + const IdentifierServer + const IdentifierSnapshot + const IdentifierVolume + var FuncMap = template.FuncMap + func CreateServer(api *ScalewayAPI, imageName string, name string, bootscript string, env string, ...) (string, error) + func CreateVolumeFromHumanSize(api *ScalewayAPI, size string) (*string, error) + func InspectIdentifiers(api *ScalewayAPI, ci chan ScalewayResolvedIdentifier, cj chan interface{}) + func ResolveIdentifiers(api *ScalewayAPI, needles []string, out chan ScalewayResolvedIdentifier) + func StartServer(api *ScalewayAPI, needle string, wait bool) error + func StartServerOnce(api *ScalewayAPI, needle string, wait bool, successChan chan bool, ...) + type ByCreationDate []ScalewayImageInterface + func (a ByCreationDate) Len() int + func (a ByCreationDate) Less(i, j int) bool + func (a ByCreationDate) Swap(i, j int) + type Config struct + APIEndPoint string + Organization string + Token string + type ScalewayAPI struct + APIEndPoint string + Cache *ScalewayCache + Organization string + Token string + func NewScalewayAPI(endpoint, organization, token string) (*ScalewayAPI, error) + func (s *ScalewayAPI) CheckCredentials() error + func (s *ScalewayAPI) DeleteImage(imageID string) error + func (s *ScalewayAPI) DeleteResponse(resource string) (*http.Response, error) + func (s *ScalewayAPI) DeleteServer(serverID string) error + func (s *ScalewayAPI) GetBootscript(bootscriptID string) (*ScalewayBootscript, error) + func (s *ScalewayAPI) GetBootscriptID(needle string) string + func (s *ScalewayAPI) GetBootscripts() (*[]ScalewayBootscript, error) + func (s *ScalewayAPI) GetImage(imageID string) (*ScalewayImage, error) + func (s *ScalewayAPI) GetImageID(needle string) string + func (s *ScalewayAPI) GetImages() (*[]ScalewayImage, error) + func (s *ScalewayAPI) GetResponse(resource string) (*http.Response, error) + func (s *ScalewayAPI) GetServer(serverID string) (*ScalewayServer, error) + func (s *ScalewayAPI) GetServerID(needle string) string + func (s *ScalewayAPI) GetServers(all bool, limit int) (*[]ScalewayServer, error) + func (s *ScalewayAPI) GetSnapshot(snapshotID string) (*ScalewaySnapshot, error) + func (s *ScalewayAPI) GetSnapshotID(needle string) string + func (s *ScalewayAPI) GetSnapshots() (*[]ScalewaySnapshot, error) + func (s *ScalewayAPI) GetTasks() (*[]ScalewayTask, error) + func (s *ScalewayAPI) GetVolume(volumeID string) (*ScalewayVolume, error) + func (s *ScalewayAPI) GetVolumes() (*[]ScalewayVolume, error) + func (s *ScalewayAPI) PatchResponse(resource string, data interface{}) (*http.Response, error) + func (s *ScalewayAPI) PatchServer(serverID string, definition ScalewayServerPatchDefinition) error + func (s *ScalewayAPI) PostImage(volumeID string, name string) (string, error) + func (s *ScalewayAPI) PostResponse(resource string, data interface{}) (*http.Response, error) + func (s *ScalewayAPI) PostServer(definition ScalewayServerDefinition) (string, error) + func (s *ScalewayAPI) PostServerAction(serverID, action string) error + func (s *ScalewayAPI) PostSnapshot(volumeID string, name string) (string, error) + func (s *ScalewayAPI) PostVolume(definition ScalewayVolumeDefinition) (string, error) + func (s *ScalewayAPI) ResolveBootscript(needle string) ([]string, error) + func (s *ScalewayAPI) ResolveImage(needle string) ([]string, error) + func (s *ScalewayAPI) ResolveServer(needle string) ([]string, error) + func (s *ScalewayAPI) ResolveSnapshot(needle string) ([]string, error) + func (s *ScalewayAPI) Sync() + type ScalewayAPIError struct + APIMessage string + Message string + StatusCode int + Type string + func (e ScalewayAPIError) Debug() + func (e ScalewayAPIError) Error() string + type ScalewayBootCmdArgs struct + Identifier string + Value string + type ScalewayBootscript struct + BootCmdArgs ScalewayBootCmdArgs + Identifier string + Initrd ScalewayInitrd + Kernel ScalewayKernel + Public bool + Title string + type ScalewayBootscripts struct + Bootscripts []ScalewayBootscript + type ScalewayCache struct + Bootscripts map[string]string + Images map[string]string + Lock sync.Mutex + Modified bool + Path string + Servers map[string]string + Snapshots map[string]string + Volumes map[string]string + func NewScalewayCache() (*ScalewayCache, error) + func (c *ScalewayCache) ClearBootscripts() + func (c *ScalewayCache) ClearImages() + func (c *ScalewayCache) ClearServers() + func (c *ScalewayCache) ClearSnapshots() + func (c *ScalewayCache) ClearVolumes() + func (c *ScalewayCache) GetNbBootscripts() int + func (c *ScalewayCache) GetNbImages() int + func (c *ScalewayCache) GetNbServers() int + func (c *ScalewayCache) GetNbSnapshots() int + func (c *ScalewayCache) GetNbVolumes() int + func (c *ScalewayCache) InsertBootscript(identifier, name string) + func (c *ScalewayCache) InsertImage(identifier, name string) + func (c *ScalewayCache) InsertServer(identifier, name string) + func (c *ScalewayCache) InsertSnapshot(identifier, name string) + func (c *ScalewayCache) InsertVolume(identifier, name string) + func (c *ScalewayCache) LookUpBootscripts(needle string, acceptUUID bool) []string + func (c *ScalewayCache) LookUpIdentifiers(needle string) []ScalewayIdentifier + func (c *ScalewayCache) LookUpImages(needle string, acceptUUID bool) []string + func (c *ScalewayCache) LookUpServers(needle string, acceptUUID bool) []string + func (c *ScalewayCache) LookUpSnapshots(needle string, acceptUUID bool) []string + func (c *ScalewayCache) LookUpVolumes(needle string, acceptUUID bool) []string + func (c *ScalewayCache) RemoveBootscript(identifier string) + func (c *ScalewayCache) RemoveImage(identifier string) + func (c *ScalewayCache) RemoveServer(identifier string) + func (c *ScalewayCache) RemoveSnapshot(identifier string) + func (c *ScalewayCache) RemoveVolume(identifier string) + func (c *ScalewayCache) Save() error + type ScalewayIPAddress struct + Dynamic *bool + IP string + Identifier string + type ScalewayIdentifier struct + Identifier string + Type int + func GetIdentifier(api *ScalewayAPI, needle string) *ScalewayIdentifier + func ResolveIdentifier(api *ScalewayAPI, needle string) []ScalewayIdentifier + type ScalewayImage struct + Arch string + CreationDate string + DefaultBootscript *ScalewayBootscript + Identifier string + ModificationDate string + Name string + Organization string + Public bool + RootVolume ScalewayVolume + type ScalewayImageDefinition struct + Arch string + Name string + Organization string + SnapshotIDentifier string + type ScalewayImageInterface struct + CreationDate time.Time + Identifier string + Name string + Public bool + Tag string + Type string + VirtualSize float64 + type ScalewayImages struct + Images []ScalewayImage + type ScalewayInitrd struct + Identifier string + Path string + Title string + type ScalewayKernel struct + DTB string + Identifier string + Path string + Title string + type ScalewayOneBootscript struct + Bootscript ScalewayBootscript + type ScalewayOneImage struct + Image ScalewayImage + type ScalewayOneServer struct + Server ScalewayServer + type ScalewayOneSnapshot struct + Snapshot ScalewaySnapshot + type ScalewayOneTask struct + Task ScalewayTask + type ScalewayOneVolume struct + Volume ScalewayVolume + type ScalewayResolvedIdentifier struct + Identifiers []ScalewayIdentifier + Needle string + type ScalewaySecurityGroup struct + Identifier string + Name string + type ScalewayServer struct + Bootscript *ScalewayBootscript + CreationDate string + DynamicIPRequired *bool + Hostname string + Identifier string + Image ScalewayImage + ModificationDate string + Name string + Organization string + PrivateIP string + PublicAddress ScalewayIPAddress + SecurityGroup ScalewaySecurityGroup + State string + StateDetail string + Tags []string + Volumes map[string]ScalewayVolume + func WaitForServerReady(api *ScalewayAPI, serverID string) (*ScalewayServer, error) + func WaitForServerState(api *ScalewayAPI, serverID string, targetState string) (*ScalewayServer, error) + type ScalewayServerAction struct + Action string + type ScalewayServerDefinition struct + Bootscript *string + Image *string + Name string + Organization string + Tags []string + Volumes map[string]string + type ScalewayServerPatchDefinition struct + Bootscript *ScalewayBootscript + CreationDate *string + DynamicIPRequired *bool + Hostname *string + Image *ScalewayImage + ModificationDate *string + Name *string + Organization *string + PrivateIP *string + PublicAddress *ScalewayIPAddress + SecurityGroup *ScalewaySecurityGroup + State *string + StateDetail *string + Volumes *map[string]ScalewayVolume + type ScalewayServers struct + Servers []ScalewayServer + type ScalewaySnapshot struct + BaseVolume ScalewayVolume + CreationDate string + Identifier string + ModificationDate string + Name string + Organization string + Size int64 + State string + VolumeType string + type ScalewaySnapshotDefinition struct + Name string + Organization string + VolumeIDentifier string + type ScalewaySnapshots struct + Snapshots []ScalewaySnapshot + type ScalewayTask struct + Description string + HrefFrom string + Identifier string + Progress int + StartDate string + Status string + TerminationDate string + type ScalewayTasks struct + Tasks []ScalewayTask + type ScalewayVolume struct + CreationDate string + ExportURI string + Identifier string + ModificationDate string + Name string + Organization string + Server ... + Size int64 + VolumeType string + type ScalewayVolumeDefinition struct + Name string + Organization string + Size uint64 + Type string + type ScalewayVolumes struct + Volumes []ScalewayVolume