Documentation ¶
Index ¶
- Constants
- type AppError
- type Client
- func (c *Client) AddPublicKey(p *PublicKey) (*PublicKey, error)
- func (c *Client) Authenticate(u string, p string) (string, error)
- func (c *Client) CreateProject(p *ProjectNew) (*ProjectCreateResponse, error)
- func (c *Client) DeleteProject(name string) error
- func (c *Client) DeletePublicKey(name string) error
- func (c *Client) DisableAutoscaling(name string) error
- func (c *Client) EnableAutoscaling(name string) error
- func (c *Client) GetEnvironmentVariables(name string) (string, error)
- func (c *Client) HTTP(verb, spath string, ro *RequestOptions) (*http.Response, error)
- func (c *Client) Project(name string) (*Project, error)
- func (c *Client) Projects() (*[]Project, error)
- func (c *Client) Request(verb, spath string, ro *RequestOptions) (*http.Request, error)
- func (c *Client) UpdateEnvironmentVariables(name string, params []UpdateEnvironmentVariablesParam) error
- type CustomDomain
- type Database
- type Project
- type ProjectCreateResponse
- type ProjectNew
- type PublicKey
- type RequestOptions
- type SSH
- type UpdateEnvironmentVariablesParam
Constants ¶
View Source
const ( // EndpointEnvVar for endpoint EndpointEnvVar = "LOLP_ENDPOINT" // TLSNoVerifyEnvVar for TLS verify skip flag TLSNoVerifyEnvVar = "LOLP_TLS_NOVERIFY" // TokenEnvVar for authentication TokenEnvVar = "LOLP_TOKEN" )
View Source
const Name string = "lolp"
Name for this
View Source
const Version string = "0.0.6"
Version for this
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client struct
func (*Client) AddPublicKey ¶ added in v0.0.4
AddPublicKey add OpenSSH public key
func (*Client) Authenticate ¶
Authenticate for authorization
func (*Client) CreateProject ¶
func (c *Client) CreateProject(p *ProjectNew) (*ProjectCreateResponse, error)
CreateProject creates project with kind
func (*Client) DeleteProject ¶
DeleteProject deletes project by project sub-domain name
func (*Client) DeletePublicKey ¶ added in v0.0.4
DeletePublicKey delete OpenSSH public key
func (*Client) DisableAutoscaling ¶ added in v0.0.5
DisableAutoscaling disable autoscaling by project sub-domain name
func (*Client) EnableAutoscaling ¶ added in v0.0.5
EnableAutoscaling enable autoscaling by project sub-domain name
func (*Client) GetEnvironmentVariables ¶ added in v0.0.6
func (*Client) UpdateEnvironmentVariables ¶ added in v0.0.6
func (c *Client) UpdateEnvironmentVariables(name string, params []UpdateEnvironmentVariablesParam) error
type CustomDomain ¶ added in v0.0.5
type CustomDomain struct {
Name string `json:"name,omitempty"`
}
type Project ¶
type Project struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Kind string `json:"kind,omitempty"` Domain string `json:"domain,omitempty"` SubDomain string `json:"subDomain,omitempty"` Autoscalable bool `json:"autoscalable,omitempty"` CustomDomains []CustomDomain `json:"customDomains,omitempty"` Database Database `json:"database,omitempty"` SSH *SSH `json:"ssh,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt time.Time `json:"updatedAt,omitempty"` }
Project struct
type ProjectCreateResponse ¶ added in v0.0.4
type ProjectNew ¶
type ProjectNew struct { Name string `json:"name,omitempty"` Kind string `json:"kind,omitempty""` SubDomain string `json:"sub_domain,omitempty"` CustomDomains []string `json:"custom_domains,omitempty"` Payload map[string]interface{} `json:"payload,omitempty"` DBPassword string `json:"db_password,omitempty"` }
ProjectNew struct on create
type RequestOptions ¶
type RequestOptions struct { Params map[string]string Headers map[string]string Body io.Reader BodyLength int64 }
RequestOptions struct
type UpdateEnvironmentVariablesParam ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.