Documentation ¶
Index ¶
Constants ¶
const (
// APIName is used by rsc to display command line help.
APIName = "RightScale Self-Service APIs"
)
Variables ¶
var GenMetadata map[string]*metadata.Resource
Metadata synthetized from all SS APIs metadata
Functions ¶
func HostFromLogin ¶
HostFromLogin returns the Self-service endpoint from its login endpoint. The following isn't great but seems better than having to enter by hand.
func RegisterCommands ¶
func RegisterCommands(registrar rsapi.APICommandRegistrar)
RegisterCommands registers all commands with the kinpin application.
Types ¶
type API ¶
API is the Self-Service 1.0 common client to all self-service 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.
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
basic
This basic example illustrates how to setup a Self-Service client to make a simple API call.
|
This basic example illustrates how to setup a Self-Service client to make a simple API call. |
upload
This upload example illustrates how to upload a CAT to the self-service designer service.
|
This upload example illustrates how to upload a CAT to the self-service designer service. |