legacy

package
v0.0.0-...-8115ff7 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-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
}

Client for talking to Harbor API Wrap based on legacy sdk

func New

func New() *Client

New client

func NewWithServer

func NewWithServer(s *model.HarborServer) *Client

NewWithServer new client with provided server

func (*Client) CheckHealth

func (c *Client) CheckHealth() (*models.OverallHealthStatus, error)

func (*Client) CreateRobotAccount

func (c *Client) CreateRobotAccount(projectID int64) (*model.Robot, error)

func (*Client) DeleteRobotAccount

func (c *Client) DeleteRobotAccount(projectID, robotID int64) error

func (*Client) GetRobotAccount

func (c *Client) GetRobotAccount(projectID, robotID int64) (*model.Robot, error)

func (*Client) WithContext

func (c *Client) WithContext(ctx context.Context) *Client

func (*Client) WithServer

func (c *Client) WithServer(s *model.HarborServer) *Client

func (*Client) WithTimeout

func (c *Client) WithTimeout(timeout time.Duration) *Client

Jump to

Keyboard shortcuts

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