Skip to content

Commit 58314c3

Browse files
committed
Merge pull request #317 from QuentinPerez/doc
Update comments to remove C1 specification
2 parents dae9f1a + 18c90e7 commit 58314c3

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

pkg/api/api.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ type ScalewayVolumes struct {
178178
Volumes []ScalewayVolume `json:"volumes,omitempty"`
179179
}
180180

181-
// ScalewayVolumeDefinition represents a Scaleway C1 volume definition
181+
// ScalewayVolumeDefinition represents a Scaleway volume definition
182182
type ScalewayVolumeDefinition struct {
183183
// Name is the user-defined name of the volume
184184
Name string `json:"name"`
@@ -193,7 +193,7 @@ type ScalewayVolumeDefinition struct {
193193
Organization string `json:"organization"`
194194
}
195195

196-
// ScalewayVolumePutDefinition represents a Scaleway C1 volume with nullable fields (for PUT)
196+
// ScalewayVolumePutDefinition represents a Scaleway volume with nullable fields (for PUT)
197197
type ScalewayVolumePutDefinition struct {
198198
Identifier *string `json:"id,omitempty"`
199199
Size *uint64 `json:"size,omitempty"`
@@ -322,7 +322,7 @@ type ScalewayInitrd struct {
322322
Title string `json:"title,omitempty"`
323323
}
324324

325-
// ScalewayKernel represents a kernel used on C1 servers
325+
// ScalewayKernel represents a kernel used on servers
326326
type ScalewayKernel struct {
327327
// Identifier is the unique identifier of the kernel
328328
Identifier string `json:"id,omitempty"`
@@ -497,7 +497,7 @@ type ScalewayNewSecurityGroup struct {
497497
Description string `json:"description"`
498498
}
499499

500-
// ScalewayServer represents a Scaleway C1 server
500+
// ScalewayServer represents a Scaleway server
501501
type ScalewayServer struct {
502502
// Arch is the architecture target of the server
503503
Arch string `json:"arch,omitempty"`
@@ -550,7 +550,7 @@ type ScalewayServer struct {
550550
// Organization is the owner of the server
551551
Organization string `json:"organization,omitempty"`
552552

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

556556
// Location of the server
@@ -564,7 +564,7 @@ type ScalewayServer struct {
564564
} `json:"location,omitempty"`
565565
}
566566

567-
// ScalewayServerPatchDefinition represents a Scaleway C1 server with nullable fields (for PATCH)
567+
// ScalewayServerPatchDefinition represents a Scaleway server with nullable fields (for PATCH)
568568
type ScalewayServerPatchDefinition struct {
569569
Arch *string `json:"arch,omitempty"`
570570
Name *string `json:"name,omitempty"`
@@ -584,7 +584,7 @@ type ScalewayServerPatchDefinition struct {
584584
Tags *[]string `json:"tags,omitempty"`
585585
}
586586

587-
// ScalewayServerDefinition represents a Scaleway C1 server with image definition
587+
// ScalewayServerDefinition represents a Scaleway server with image definition
588588
type ScalewayServerDefinition struct {
589589
// Name is the user-defined name of the server
590590
Name string `json:"name"`
@@ -607,7 +607,7 @@ type ScalewayServerDefinition struct {
607607
// Organization is the owner of the server
608608
Organization string `json:"organization"`
609609

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

613613
PublicIP string `json:"public_ip,omitempty"`
@@ -618,13 +618,13 @@ type ScalewayOneServer struct {
618618
Server ScalewayServer `json:"server,omitempty"`
619619
}
620620

621-
// ScalewayServers represents a group of Scaleway C1 servers
621+
// ScalewayServers represents a group of Scaleway servers
622622
type ScalewayServers struct {
623623
// Servers holds scaleway servers of the response
624624
Servers []ScalewayServer `json:"servers,omitempty"`
625625
}
626626

627-
// ScalewayServerAction represents an action to perform on a Scaleway C1 server
627+
// ScalewayServerAction represents an action to perform on a Scaleway server
628628
type ScalewayServerAction struct {
629629
// Action is the name of the action to trigger
630630
Action string `json:"action,omitempty"`

pkg/api/cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type ScalewayCache struct {
4646
// Bootscripts contains names of Scaleway bootscripts indexed by identifier
4747
Bootscripts map[string][CacheMaxfield]string `json:"bootscripts"`
4848

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

5252
// Path is the path to the cache file

0 commit comments

Comments
 (0)