Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ type ScalewayVolumes struct {
Volumes []ScalewayVolume `json:"volumes,omitempty"`
}

// ScalewayVolumeDefinition represents a Scaleway C1 volume definition
// ScalewayVolumeDefinition represents a Scaleway volume definition
type ScalewayVolumeDefinition struct {
// Name is the user-defined name of the volume
Name string `json:"name"`
Expand All @@ -193,7 +193,7 @@ type ScalewayVolumeDefinition struct {
Organization string `json:"organization"`
}

// ScalewayVolumePutDefinition represents a Scaleway C1 volume with nullable fields (for PUT)
// ScalewayVolumePutDefinition represents a Scaleway volume with nullable fields (for PUT)
type ScalewayVolumePutDefinition struct {
Identifier *string `json:"id,omitempty"`
Size *uint64 `json:"size,omitempty"`
Expand Down Expand Up @@ -322,7 +322,7 @@ type ScalewayInitrd struct {
Title string `json:"title,omitempty"`
}

// ScalewayKernel represents a kernel used on C1 servers
// ScalewayKernel represents a kernel used on servers
type ScalewayKernel struct {
// Identifier is the unique identifier of the kernel
Identifier string `json:"id,omitempty"`
Expand Down Expand Up @@ -497,7 +497,7 @@ type ScalewayNewSecurityGroup struct {
Description string `json:"description"`
}

// ScalewayServer represents a Scaleway C1 server
// ScalewayServer represents a Scaleway server
type ScalewayServer struct {
// Arch is the architecture target of the server
Arch string `json:"arch,omitempty"`
Expand Down Expand Up @@ -550,7 +550,7 @@ type ScalewayServer struct {
// Organization is the owner of the server
Organization string `json:"organization,omitempty"`

// CommercialType is the commercial type of the server (i.e: C1)
// CommercialType is the commercial type of the server (i.e: C1, C2[SML], VC1)
CommercialType string `json:"commercial_type,omitempty"`

// Location of the server
Expand All @@ -562,7 +562,7 @@ type ScalewayServer struct {
} `json:"location,omitempty"`
}

// ScalewayServerPatchDefinition represents a Scaleway C1 server with nullable fields (for PATCH)
// ScalewayServerPatchDefinition represents a Scaleway server with nullable fields (for PATCH)
type ScalewayServerPatchDefinition struct {
Arch *string `json:"arch,omitempty"`
Name *string `json:"name,omitempty"`
Expand All @@ -582,7 +582,7 @@ type ScalewayServerPatchDefinition struct {
Tags *[]string `json:"tags,omitempty"`
}

// ScalewayServerDefinition represents a Scaleway C1 server with image definition
// ScalewayServerDefinition represents a Scaleway server with image definition
type ScalewayServerDefinition struct {
// Name is the user-defined name of the server
Name string `json:"name"`
Expand All @@ -605,7 +605,7 @@ type ScalewayServerDefinition struct {
// Organization is the owner of the server
Organization string `json:"organization"`

// CommercialType is the commercial type of the server (i.e: C1)
// CommercialType is the commercial type of the server (i.e: C1, C2[SML], VC1)
CommercialType string `json:"commercial_type"`

PublicIP string `json:"public_ip,omitempty"`
Expand All @@ -616,13 +616,13 @@ type ScalewayOneServer struct {
Server ScalewayServer `json:"server,omitempty"`
}

// ScalewayServers represents a group of Scaleway C1 servers
// ScalewayServers represents a group of Scaleway servers
type ScalewayServers struct {
// Servers holds scaleway servers of the response
Servers []ScalewayServer `json:"servers,omitempty"`
}

// ScalewayServerAction represents an action to perform on a Scaleway C1 server
// ScalewayServerAction represents an action to perform on a Scaleway server
type ScalewayServerAction struct {
// Action is the name of the action to trigger
Action string `json:"action,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type ScalewayCache struct {
// Bootscripts contains names of Scaleway bootscripts indexed by identifier
Bootscripts map[string][CacheMaxfield]string `json:"bootscripts"`

// Servers contains names of Scaleway C1 servers indexed by identifier
// Servers contains names of Scaleway servers indexed by identifier
Servers map[string][CacheMaxfield]string `json:"servers"`

// Path is the path to the cache file
Expand Down