panda

package
v0.0.0-...-342a630 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerCreateURL  = "/panda/container/create/"
	ContainerReleaseURL = "/panda/container/release/"
)
View Source
const UserProfileURL = "/api/v1/users/profile/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseUrl string, key model.AccessKey, insecure bool) *Client

func (*Client) CreateContainer

func (c *Client) CreateContainer(token string, virtualAPPOption model.VirtualAppOption) (ret model.VirtualAppContainer, err error)

func (*Client) ReleaseContainer

func (c *Client) ReleaseContainer(id string) error

type ProfileAuth

type ProfileAuth struct {
	KeyID    string
	SecretID string
}

func (*ProfileAuth) Sign

func (auth *ProfileAuth) Sign(r *http.Request) error

type Response

type Response struct {
	Success bool                      `json:"success"`
	Msg     string                    `json:"message"`
	Data    model.VirtualAppContainer `json:"data"`
}

Jump to

Keyboard shortcuts

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