client

package
v0.0.0-...-c283e9f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("layer not found")

Functions

This section is empty.

Types

type Client

type Client struct {
	*httpclient.Client
}

func NewClient

func NewClient(url, key string) *Client

func NewClientWithConfig

func NewClientWithConfig(url, key string, config Config) *Client

func NewClientWithHTTP

func NewClientWithHTTP(url string, client *http.Client) *Client

func (*Client) CreateArtifact

func (c *Client) CreateArtifact(manifest *ct.ImageManifest) (*ct.Artifact, error)

func (*Client) CreateLayer

func (c *Client) CreateLayer(id string, src io.Reader) (*ct.ImageLayer, error)

func (*Client) GetLayer

func (c *Client) GetLayer(id string) (*ct.ImageLayer, error)

type Config

type Config struct {
	Pin    []byte
	Domain string
}

Jump to

Keyboard shortcuts

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