Documentation ¶
Index ¶
- type Config
- type ControllerConfig
- type ControllerConn
- func (c *ControllerConn) CloudBlueprintsClient() (utils.CloudBlueprintsClient, error)
- func (c *ControllerConn) CloudPolicyClient() (utils.CloudPolicyClient, error)
- func (c *ControllerConn) InitFlags(flags *flag.FlagSet)
- func (c *ControllerConn) IntrospectionClient() (utils.IntrospectionClient, error)
- func (c *ControllerConn) PolicyClient() (utils.SelfHostedPolicyClient, error)
- func (c *ControllerConn) PostRun(_ *cobra.Command, _ []string)
- func (c *ControllerConn) PreRunE(_ *cobra.Command, _ []string) error
- func (c *ControllerConn) StatusClient() (utils.StatusClient, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // When changing fields, remember to update docs/content/reference/configuration/aperturectl.md. Controller *ControllerConfig `toml:"controller"` }
Config is the config file structure for Aperture.
type ControllerConfig ¶
type ControllerConfig struct { // When changing fields, remember to update docs/content/reference/configuration/aperturectl.md. URL string `toml:"url"` APIKey string `toml:"api_key"` ProjectName string `toml:"project_name"` }
ControllerConfig is the config file structure for Aperture Cloud Controller.
type ControllerConn ¶
type ControllerConn struct {
// contains filtered or unexported fields
}
ControllerConn manages flags for connecting to controller – either via address or kubeconfig.
func (*ControllerConn) CloudBlueprintsClient ¶ added in v2.20.0
func (c *ControllerConn) CloudBlueprintsClient() (utils.CloudBlueprintsClient, error)
CloudBlueprintsClient returns Cloud Controller BlueprintsClient, connecting to cloud controller if not yet connected.
func (*ControllerConn) CloudPolicyClient ¶
func (c *ControllerConn) CloudPolicyClient() (utils.CloudPolicyClient, error)
CloudPolicyClient returns Cloud Controller PolicyClient, connecting to cloud controller if not yet connected.
func (*ControllerConn) InitFlags ¶
func (c *ControllerConn) InitFlags(flags *flag.FlagSet)
InitFlags sets up flags for Cloud Controller.
func (*ControllerConn) IntrospectionClient ¶ added in v2.18.0
func (c *ControllerConn) IntrospectionClient() (utils.IntrospectionClient, error)
IntrospectionClient returns Controller IntrospectionClient, connecting to controller if not yet connected.
func (*ControllerConn) PolicyClient ¶ added in v2.18.0
func (c *ControllerConn) PolicyClient() (utils.SelfHostedPolicyClient, error)
PolicyClient returns Controller PolicyClient, connecting to controller if not yet connected.
func (*ControllerConn) PostRun ¶
func (c *ControllerConn) PostRun(_ *cobra.Command, _ []string)
PostRun cleans up ControllerConn's resources, and should be run at PostRun stage.
func (*ControllerConn) PreRunE ¶
func (c *ControllerConn) PreRunE(_ *cobra.Command, _ []string) error
PreRunE verifies flags and should be run at PreRunE stage.
func (*ControllerConn) StatusClient ¶ added in v2.18.0
func (c *ControllerConn) StatusClient() (utils.StatusClient, error)
StatusClient returns Controller StatusClient, connecting to controller if not yet connected.