Documentation ¶
Index ¶
- type Client
- func (c *Client) DeleteProject(name string) error
- func (c *Client) EnsureProject(name string) (int64, error)
- func (c *Client) GetProject(name string) (*v2models.Project, 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 V2 API Wrap based on sdk v2
func NewWithServer ¶
func NewWithServer(s *model.HarborServer) *Client
NewWithServer new V2 client with provided server
func (*Client) DeleteProject ¶
DeleteProject deletes project
func (*Client) EnsureProject ¶
EnsureProject ensures the specified project is on the harbor server If project with name is existing, then error will be nil
func (*Client) GetProject ¶
GetProject gets the project data
func (*Client) WithServer ¶
func (c *Client) WithServer(s *model.HarborServer) *Client
Click to show internal directories.
Click to hide internal directories.