Documentation
¶
Overview ¶
Package cli implements synctl, the SynCloud command line (§7.1).
Every API operation must have a synctl command (parity, §5.1). Commands that wrap an operation carry its operationId in Annotations[opAnnotation]; a test checks them against the OpenAPI spec.
Index ¶
Constants ¶
const ( EnvProfile = "SYNCLOUD_PROFILE" EnvEndpoint = "SYNCLOUD_ENDPOINT" EnvKeyID = "SYNCLOUD_ACCESS_KEY_ID" EnvSecret = "SYNCLOUD_SECRET_ACCESS_KEY" EnvToken = "SYNCLOUD_TOKEN" // EnvSessionToken goes with temporary credentials (Cloud Shell, sts). EnvSessionToken = "SYNCLOUD_SESSION_TOKEN" EnvConfigDir = "SYNCLOUD_CONFIG_DIR" )
Environment variables override the profile (useful in CI).
Variables ¶
This section is empty.
Functions ¶
func OperationCommands ¶
OperationCommands maps each API operation to the synctl command that wraps it ("synctl services scale NAME REPLICAS"), for the API docs.
Types ¶
type Profile ¶
type Profile struct {
Endpoint string `json:"endpoint"`
AccessKeyID string `json:"accessKeyId,omitempty"`
SecretAccessKey string `json:"secretAccessKey,omitempty"`
Token string `json:"token,omitempty"`
// SessionToken comes with temporary credentials (synctl login, sts).
SessionToken string `json:"sessionToken,omitempty"`
Expiration *time.Time `json:"expiration,omitempty"`
}
Profile holds one named set of connection settings in ~/.syncloud/credentials (like `aws configure`, §7.1).
Source Files
¶
- alerts.go
- autoscale.go
- backups.go
- builds.go
- certs.go
- commands.go
- config.go
- databases.go
- domain.go
- domains.go
- exec.go
- firewall.go
- health.go
- iam.go
- iamadmin.go
- integrations.go
- jobs.go
- lifecycle.go
- logs.go
- metrics.go
- network.go
- nodedocker.go
- nodepools.go
- nodes.go
- nodeshell.go
- output.go
- pg.go
- pgconfig.go
- ports.go
- recoverykey.go
- registry.go
- regstorage.go
- root.go
- s3.go
- secgroups.go
- settings.go
- system.go
- traefik.go
- traffic.go
- upgrades.go
- upstreams.go
- workloads.go