Skip to content

Commit 18c90e7

Browse files
author
Quentin Perez
committed
Update comments to remove C1 specification
1 parent 0d30096 commit 18c90e7

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
@@ -562,7 +562,7 @@ type ScalewayServer struct {
562562
} `json:"location,omitempty"`
563563
}
564564

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

585-
// ScalewayServerDefinition represents a Scaleway C1 server with image definition
585+
// ScalewayServerDefinition represents a Scaleway server with image definition
586586
type ScalewayServerDefinition struct {
587587
// Name is the user-defined name of the server
588588
Name string `json:"name"`
@@ -605,7 +605,7 @@ type ScalewayServerDefinition struct {
605605
// Organization is the owner of the server
606606
Organization string `json:"organization"`
607607

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

611611
PublicIP string `json:"public_ip,omitempty"`
@@ -616,13 +616,13 @@ type ScalewayOneServer struct {
616616
Server ScalewayServer `json:"server,omitempty"`
617617
}
618618

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

625-
// ScalewayServerAction represents an action to perform on a Scaleway C1 server
625+
// ScalewayServerAction represents an action to perform on a Scaleway server
626626
type ScalewayServerAction struct {
627627
// Action is the name of the action to trigger
628628
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)