Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HTTPEndpointPattern is the URL path pattern registered with // the API server. This includes wildcards (starting with ":") that // are converted into URL query values by the pattern mux. Also see // apiserver/apiserver.go. HTTPEndpointPattern = "/units/:unit/resources/:resource" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListResourcesArgs ¶
type ListResourcesArgs struct { // ResourceNames holds the names of the application's resources for // which information should be provided. ResourceNames []string `json:"resource-names"` }
ListResourcesArgs holds the arguments for an API request to list resources for an application. The application is implicit to the uniter- specific HTTP connection.
type ResourceResult ¶
type ResourceResult struct { params.ErrorResult // Resource is the info for the requested resource. Resource api.Resource `json:"resource"` }
ResourceResult is the result for a single requested resource.
type ResourcesResult ¶
type ResourcesResult struct { params.ErrorResult // Resources is the list of results for the requested resources, // in the same order as requested. Resources []ResourceResult `json:"resources"` }
ResourcesResult holds the resource info for a list of requested resources.
Click to show internal directories.
Click to hide internal directories.