client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func GetClient

func GetClient(clientURL, username, password string, expiry int64, options ...Option) *Client

func (*Client) Delete

func (c *Client) Delete(endpoint string) (*container.Container, error)

func (*Client) GetviaURL

func (c *Client) GetviaURL(endpoint string) (*container.Container, error)

func (*Client) Save

func (c *Client) Save(endpoint string, obj models.Model) (*container.Container, error)

func (*Client) Update

func (c *Client) Update(endpoint string, obj models.Model) (*container.Container, error)

type Option

type Option func(*Client)

func Insecure

func Insecure(insecure bool) Option

func ProxyUrl

func ProxyUrl(pUrl string) Option

Jump to

Keyboard shortcuts

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