Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct { VanillaClient *VanillaClient YugawareClient *client.APIClient APIKey string CustomerID string }
APIClient struct to handle API calls
type LoginRequest ¶
LoginRequest to handle request body of REST API
type LoginResponse ¶
type LoginResponse struct { AuthToken string `json:"authToken"` CustomerUUID string `json:"customerUUID"` UserUUID string `json:"userUUID"` }
LoginResponse to handle response body of REST API
type ReleaseResponse ¶
type ReleaseResponse struct {
Success bool `json:"success"`
}
ReleaseResponse handles the resturn value of the releases endpoint
type VanillaClient ¶
VanillaClient struct used for accessing non-public APIs
func (*VanillaClient) Login ¶
func (vc *VanillaClient) Login(ctx context.Context, email string, password string) ( *LoginResponse, error)
Login calls REST API for logging into YBA
func (*VanillaClient) ReleaseImport ¶
func (vc *VanillaClient) ReleaseImport(ctx context.Context, cUUID string, version string, s3 map[string]interface{}, gcs map[string]interface{}, https map[string]interface{}, token string) (bool, error)
ReleaseImport uses REST API to call import release functionality
Click to show internal directories.
Click to hide internal directories.