client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCharmServerHTTPort = 35354
View Source
const DefaultCharmServerHost = "https://cloud.charm.sh"
View Source
const DefaultCharmServerSSHPort = 35353
View Source
const DefaultServerURL = "http://localhost:8000"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient() (*Client, error)

func NewClientWithConfig

func NewClientWithConfig(cfg *Config) (*Client, error)

func (*Client) Publish

func (c *Client) Publish(path string) error

func (*Client) PublishWithRoot

func (c *Client) PublishWithRoot(root, path string) error

func (*Client) UploadRequest

func (c *Client) UploadRequest(token string, body *bytes.Buffer) (*http.Request, error)

type Config

type Config struct {
	ServerURL           string
	CharmServerHost     string
	CharmServerHTTPPort int
	CharmServerSSHPort  int
}

func DefaultConfig

func DefaultConfig() *Config

Jump to

Keyboard shortcuts

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