Documentation
¶
Index ¶
Constants ¶
View Source
const (
//ServiceID represents cce service id.
ServiceID = "gce"
)
Variables ¶
This section is empty.
Functions ¶
func GetComputeService ¶
GetComputeService returns specialised compute service for provided service name.
func NewComputeService ¶
NewComputeService creates a new compute service.
Types ¶
type CallRequest ¶
type CallRequest struct {
Credentials string `required:"true" description:"path to secret json file"` //path to secret json file.
Service string `` //field representing service on *compute.Service, for instance Instance field points to *compute.InstancesService
/* 142-byte string literal not displayed */
Method string `required:"true" description:"method on cloud service, for instance, Get, Start"` //method on cloud service, for instance, Get, Start
Parameters []interface{} `required:"true" description:"actual method parameters"` //actual method parameters
}
CallRequest represents GCE call request, it operates on *cloud.Service client (https://cloud.google.com/compute/docs/reference/latest/)
func (*CallRequest) Validate ¶
func (r *CallRequest) Validate() error
Validate checks if request is valid
Click to show internal directories.
Click to hide internal directories.