Documentation ¶
Index ¶
- type Client
- func (c *Client) CheckHealth() (*models.OverallHealthStatus, error)
- func (c *Client) CreateRobotAccount(projectID int64) (*model.Robot, error)
- func (c *Client) DeleteRobotAccount(projectID, robotID int64) error
- func (c *Client) GetRobotAccount(projectID, robotID int64) (*model.Robot, error)
- func (c *Client) WithContext(ctx context.Context) *Client
- func (c *Client) WithServer(s *model.HarborServer) *Client
- func (c *Client) WithTimeout(timeout time.Duration) *Client
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 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 (*Client) DeleteRobotAccount ¶
func (*Client) GetRobotAccount ¶
func (*Client) WithServer ¶
func (c *Client) WithServer(s *model.HarborServer) *Client
Click to show internal directories.
Click to hide internal directories.