Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientError ¶
ClientError define an error when failing to create client
func (*ClientError) Error ¶
func (s *ClientError) Error() string
type Platform ¶
type Platform interface {
// CreateClient returns a valid client for the current platform
CreateClient(client *http.Client, configPath string, profileName string) (*scw.Client, error)
// ScwConfig returns a scaleway config if available, can be nil
// TODO: remove if possible, currently used in profile completion
ScwConfig() *scw.Config
// SetScwConfig set the stored config, useful for testing purpose
SetScwConfig(cfg *scw.Config)
}
Platform defines an environment running the CLI It can be the implementation to run in a terminal Or the implementation to run in a browser (used for wasm/js build)
Click to show internal directories.
Click to hide internal directories.