Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
type Factory struct {
// HTTPClient is the underlying HTTP client used in APIClient and CustomHTTPClient
HTTPClient func() (*http.Client, error)
// CustomHTTPClient includes a custom HTTP.Client that includes the default
// headers to integrate with a Controller
// the custom HTTP client includes the default transport layer to import TLS certificate
// and applies Accept, Authorization, and User-Agent headers to all requests
CustomHTTPClient func() (*http.Client, error)
// HTTPTransport is used by all HTTP Clients to import custom TLS certificate and set timeout values
HTTPTransport func() (*http.Transport, error)
// APIClient is the generated api client based on the openapi-generator https://github.com/appgate/sdp-api-client-go
APIClient func(c *configuration.Config) (*openapi.APIClient, error)
Appliance func(c *configuration.Config) (*appliance.Appliance, error)
Device func(c *configuration.Config) (*device.Device, error)
ServiceUsers func(c *configuration.Config) (*serviceusers.ServiceUsersAPI, error)
DockerRegistry func(s string) (*url.URL, error)
BaseURL func() string
Config *configuration.Config
IOOutWriter io.Writer
Stdin io.ReadCloser
StdErr io.Writer
SpinnerOut io.Writer
// contains filtered or unexported fields
}
func (*Factory) DisablePrompt ¶
func (*Factory) GetDockerRegistry ¶
GetDockerRegistry parses and returns a normalized URL for the docker registry to be used The URL needs to be valid and the following priority will be evaluated 1. Argument 's' 2. If the 'SDPCTL_DOCKER_REGISTRY' environment variable is set 3. The default registry which is set during build time
func (*Factory) GetSpinnerOutput ¶
func (*Factory) SetSpinnerOutput ¶
Click to show internal directories.
Click to hide internal directories.