Documentation
¶
Index ¶
- type Client
- func (f Client) BaseURL() string
- func (f Client) CreateRobotAccount(name string, pushAccess bool, project harbor.Project) (*harbor.CreateRobotResponse, error)
- func (f Client) DeleteRobotAccount(project harbor.Project, robotID int) error
- func (f Client) GetRobotAccounts(project harbor.Project) ([]harbor.Robot, error)
- func (f Client) ListProjects() ([]harbor.Project, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURLFunc func() string ListProjectsFunc func() ([]harbor.Project, error) GetRobotAccountsFunc func(project harbor.Project) ([]harbor.Robot, error) CreateRobotAccountFunc func(name string, pushAccess bool, project harbor.Project) (*harbor.CreateRobotResponse, error) DeleteRobotAccountFunc func(project harbor.Project, robotID int) error }
Client implements harbor.API and offers a Func interface for each method
func (Client) CreateRobotAccount ¶
func (f Client) CreateRobotAccount(name string, pushAccess bool, project harbor.Project) (*harbor.CreateRobotResponse, error)
CreateRobotAccount ...
func (Client) DeleteRobotAccount ¶
DeleteRobotAccount ...
func (Client) GetRobotAccounts ¶
GetRobotAccounts ...
Click to show internal directories.
Click to hide internal directories.