Package service provides access to the service api facade. This facade contains api calls that are specific to services. As a rule of thumb, if the argument for an api requries a service name and affects only that service then the call belongs here.
Client allows access to the service API end point.
NewClient creates a new client for accessing the service api.
func (*Client) EnvironmentUUID ¶
EnvironmentUUID returns the environment UUID from the client connection.
func (*Client) ServiceDeploy ¶
ServiceDeploy obtains the charm, either locally or from the charm store, and deploys it. It allows the specification of requested networks that must be present on the machines where the service is deployed. Another way to specify networks to include/exclude is using constraints. Placement directives, if provided, specify the machine on which the charm is deployed.