Documentation
¶
Index ¶
Constants ¶
View Source
const (
// APIName is used by rsc to display command line help
APIName = "RightScale Cloud Analytics APIs"
)
Variables ¶
View Source
var GenMetadata = setupMetadata()
Metadata synthetized from all CA APIs metadata; setup once
Functions ¶
func RegisterCommands ¶
func RegisterCommands(registrar rsapi.APICommandRegistrar)
RegisterCommands registers all commands with kinpin application.
Types ¶
type API ¶
API is the CA 1.0 common client to all cloud analytics APIs.
func FromCommandLine ¶
func FromCommandLine(cmdLine *cmd.CommandLine) (*API, error)
FromCommandLine builds a client from the command line.
func (*API) BuildRequest ¶
func (a *API) BuildRequest(resource, action, href string, params rsapi.APIParams) (*http.Request, error)
BuildRequest builds a HTTP request from a resource name and href and an action name and parameters. It is intended for generic clients that need to consume APIs in a generic maner. The method builds an HTTP request that can be fed to PerformRequest.
func (*API) RunCommand ¶
RunCommand parses and runs a command given its name.
func (*API) ShowAPIActions ¶
ShowAPIActions displays a command actions.
func (*API) ShowCommandHelp ¶
ShowCommandHelp displays a command help.
Click to show internal directories.
Click to hide internal directories.