types

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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 LogInParams interface {
	GetParams() map[string]string
}

type NuvlaID

type NuvlaID struct {
	Uuid         string
	ResourceType string
	Id           string
}

func NewNuvlaID

func NewNuvlaID(uuid string, resourceType string) *NuvlaID

func NewNuvlaIDFromId

func NewNuvlaIDFromId(id string) *NuvlaID

func (*NuvlaID) String

func (n *NuvlaID) String() string

type NuvlaResource

type NuvlaResource struct {
	Id           string
	ResourceType string
	Data         map[string]interface{}
}

func NewResourceFromResponse

func NewResourceFromResponse(resp *http.Response) *NuvlaResource

type NuvlaResponse

type NuvlaResponse struct {
}

type RequestOpts

type RequestOpts struct {
	Method   string
	Endpoint string
	Data     map[string]string
	JsonData map[string]interface{}
	Params   *RequestParams
	Headers  map[string]string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL