Documentation
¶
Index ¶
- func CreateRobotAccount(ctx context.Context, opts *models.RobotCreate) (*robot.CreateRobotCreated, error)
- func CreateSatelliteProject(ctx context.Context) (bool, error)
- func DeleteRobotAccount(ctx context.Context, robotID int64) (*robot.DeleteRobotOK, error)
- func GenRobotPerms(projects []string) []*models.RobotPermission
- func GetClient() *v2client.HarborAPI
- func GetClientByConfig(clientConfig *harbor.ClientSetConfig) *v2client.HarborAPI
- func GetProject(ctx context.Context, name string) (bool, error)
- func GetRobotAccount(ctx context.Context, id int64) (*models.Robot, error)
- func GetRobotDetails(r *robot.CreateRobotCreated) (int64, string, string)
- func IsRobotPresent(ctx context.Context, name string) (bool, error)
- func ListReplication(ctx context.Context, opts ListParams) ([]*models.ReplicationPolicy, error)
- func ListRobots(ctx context.Context, opts ListParams) (*robot.ListRobotOK, error)
- func RefreshRobotAccount(ctx context.Context, secret string, robotID int64) (*robot.RefreshSecOK, error)
- func RobotAccountTemplate(name string, projects []string) *models.RobotCreate
- func UpdateRobotAccount(ctx context.Context, opts *models.Robot) (*robot.UpdateRobotOK, error)
- type ListParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRobotAccount ¶
func CreateRobotAccount(ctx context.Context, opts *models.RobotCreate) (*robot.CreateRobotCreated, error)
func DeleteRobotAccount ¶
func GenRobotPerms ¶
func GenRobotPerms(projects []string) []*models.RobotPermission
func GetClientByConfig ¶
func GetClientByConfig(clientConfig *harbor.ClientSetConfig) *v2client.HarborAPI
func GetRobotDetails ¶
func GetRobotDetails(r *robot.CreateRobotCreated) (int64, string, string)
func ListReplication ¶
func ListReplication(ctx context.Context, opts ListParams) ([]*models.ReplicationPolicy, error)
func ListRobots ¶
func ListRobots(ctx context.Context, opts ListParams) (*robot.ListRobotOK, error)
func RefreshRobotAccount ¶
func RobotAccountTemplate ¶
func RobotAccountTemplate(name string, projects []string) *models.RobotCreate
func UpdateRobotAccount ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.