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:"api-key"` Secret string `json:"secret-key"` 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 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.