extendedclient

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address  string `json:"address"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type ExtendedClient

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

func NewExtendedClient

func NewExtendedClient(logger *zerolog.Logger, cfg *Config, transport *http.Transport) *ExtendedClient

func (*ExtendedClient) ListImages

func (c *ExtendedClient) ListImages() ([]PolicyImage, error)

func (*ExtendedClient) RemoveImage added in v0.0.49

func (c *ExtendedClient) RemoveImage(image, tag string) error

func (*ExtendedClient) SetVisibility added in v0.0.51

func (c *ExtendedClient) SetVisibility(image string, public bool) error

func (*ExtendedClient) Supported

func (c *ExtendedClient) Supported() bool

type PolicyImage added in v0.0.51

type PolicyImage struct {
	Name   string `json:"name"`
	Public bool   `json:"public"`
}

Jump to

Keyboard shortcuts

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