Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultConfigPath = "/tmp/.nuvla/" DefaultCookieFile = DefaultConfigPath + ".jar" SessionPath = DefaultConfigPath + ".session" )
Default path locations
View Source
const ( HrefSessionTemplateApiKey = "session-template/api-key" HrefSessionTemplatePassword = "session-template/password" )
View Source
const DefaultEndpoint = "https://nuvla.io"
View Source
const DefaultInsecure = false
View Source
const (
DefaultTimeout = 10
)
DefaultTimeout Network defaults
View Source
const (
SessionEndpoint = "/api/session"
)
SessionEndpoint Default endpoints
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiKeyLogInParams ¶
type ApiKeyLogInParams struct { Key string `json:"key"` Secret string `json:"secret"` Href string `json:"href"` }
func NewApiKeyLogInParams ¶
func NewApiKeyLogInParams(key, secret string) *ApiKeyLogInParams
func (*ApiKeyLogInParams) GetParams ¶
func (p *ApiKeyLogInParams) GetParams() map[string]string
type EmptyNuvlaID ¶
type EmptyNuvlaID struct{}
func (*EmptyNuvlaID) Error ¶
func (e *EmptyNuvlaID) Error() string
type InvalidNuvlaID ¶
type InvalidNuvlaID struct {
Id string
}
func (*InvalidNuvlaID) Error ¶
func (i *InvalidNuvlaID) Error() string
type LogInParams ¶
type NuvlaResource ¶
func NewResourceFromResponse ¶
func NewResourceFromResponse(resp *http.Response) *NuvlaResource
type NuvlaResponse ¶
type NuvlaResponse struct { }
type RequestOpts ¶
type RequestParams ¶
type RequestParams struct {
Select []string
}
type ResourceCreationError ¶ added in v0.7.0
type ResourceCreationError struct { ResourceType resources.NuvlaResourceType ResourceData map[string]interface{} }
func NewResourceCreationError ¶ added in v0.7.0
func NewResourceCreationError(resourceType resources.NuvlaResourceType, resourceData map[string]interface{}) *ResourceCreationError
func (ResourceCreationError) Error ¶ added in v0.7.0
func (e ResourceCreationError) Error() string
type ResourceNotFoundError ¶ added in v0.7.0
type ResourceNotFoundError struct { ResourceType resources.NuvlaResourceType ResourceID string }
ResourceNotFoundError represents a custom error when a resource is not found
func NewResourceNotFoundError ¶ added in v0.7.0
func NewResourceNotFoundError(resourceType resources.NuvlaResourceType, resourceID string) *ResourceNotFoundError
NewResourceNotFoundError creates a new ResourceNotFoundError
func (ResourceNotFoundError) Error ¶ added in v0.7.0
func (e ResourceNotFoundError) Error() string
Error method to implement the error interface
type UserLogInParams ¶
type UserLogInParams struct { Username string `json:"username"` Password string `json:"password"` Href string `json:"href"` }
func NewUserLogInParams ¶
func NewUserLogInParams(username, password string) *UserLogInParams
func (*UserLogInParams) GetParams ¶
func (p *UserLogInParams) GetParams() map[string]string
Click to show internal directories.
Click to hide internal directories.