Documentation
¶
Index ¶
- Constants
- func ConfigEntryToString(input interface{}) string
- type AddCloudInput
- type AddCredentialInput
- type AddMachineInput
- type AddUnitsInput
- type Application
- type ApplicationExistsInput
- type Client
- type CloudExistsInput
- type ConfigEntry
- type Configuration
- type ConnectionFactory
- type CreateApplicationInput
- type CreateApplicationResponse
- type CreateIntegrationResponse
- type CreateModelInput
- type CreateModelResponse
- type CredentialExistsInput
- type DestroyApplicationInput
- type DestroyControllerInput
- type DestroyMachineInput
- type DestroyModelInput
- type DestroyUnitsInput
- type EnqueueOperationInput
- type GetMachineAddressesInput
- type GetMachineInput
- type IntegrationInput
- type ReadApplicationInput
- type ReadApplicationResponse
- type RevokeCredentialInput
Constants ¶
View Source
const ( PrefixUser = "user-" UnspecifiedRevision = -1 )
Variables ¶
This section is empty.
Functions ¶
func ConfigEntryToString ¶
func ConfigEntryToString(input interface{}) string
ConfigEntryToString returns the string representation based on the current value.
Types ¶
type AddCloudInput ¶
type AddCredentialInput ¶
type AddCredentialInput struct { Credential jujuCloud.Credential CredentialName string CloudName string }
type AddMachineInput ¶
type AddMachineInput struct { MachineParams params.AddMachineParams ModelUUID string }
type AddUnitsInput ¶
type Application ¶
type ApplicationExistsInput ¶
type Client ¶
type Client struct { Models modelsClient Clouds cloudsClient Credentials credentialsClient Machines machinesClient Controller controllerClient Applications applicationsClient Integrations integrationsClient Users usersClient Actions actionsClient }
func NewClient ¶
func NewClient(config Configuration) (*Client, error)
type CloudExistsInput ¶
type CloudExistsInput struct {
Name string
}
type ConfigEntry ¶
type ConfigEntry struct { Value interface{} IsDefault bool }
ConfigEntry is an auxiliar struct to keep information about juju config entries. Specially, we want to know if they have the default value.
type Configuration ¶
type ConnectionFactory ¶
type ConnectionFactory struct {
// contains filtered or unexported fields
}
func (*ConnectionFactory) GetConnection ¶
func (cf *ConnectionFactory) GetConnection(ctx context.Context, modelUUID *string) (api.Connection, error)
type CreateApplicationInput ¶
type CreateIntegrationResponse ¶
type CreateIntegrationResponse struct {
Applications []Application
}
type CreateModelInput ¶
type CreateModelResponse ¶
type CredentialExistsInput ¶
type DestroyApplicationInput ¶
type DestroyControllerInput ¶
type DestroyMachineInput ¶
type DestroyModelInput ¶
type DestroyModelInput struct {
UUID string
}
type DestroyUnitsInput ¶
type EnqueueOperationInput ¶
type GetMachineInput ¶
type IntegrationInput ¶
type ReadApplicationInput ¶
type ReadApplicationResponse ¶
type ReadApplicationResponse struct { Name string Channel string Revision int Base params.Base Units int Trust bool Config map[string]ConfigEntry Constraints constraints.Value Expose map[string]interface{} Principal bool Status params.ApplicationStatus }
type RevokeCredentialInput ¶
Click to show internal directories.
Click to hide internal directories.