Documentation ¶
Index ¶
- Constants
- func Defaults(p *types.PlatformConfig)
- func Deploy(p *platform.Platform) error
- func ReplicateAll(p *platform.Platform) error
- func Test(p *platform.Platform, test *console.TestResults)
- func UpdateSettings(p *platform.Platform) error
- type Client
- func (harbor *Client) GetStatus() (*Status, error)
- func (harbor *Client) ListMembers(project string) ([]ProjectMember, error)
- func (harbor *Client) ListReplicationPolicies() (policies []ReplicationPolicy, customErr error)
- func (harbor *Client) TriggerReplication(id int) (*Replication, error)
- func (harbor *Client) UpdateSettings(settings types.HarborSettings) error
- type Project
- type ProjectMember
- type Replication
- type ReplicationFilter
- type ReplicationPolicy
- type ReplicationRegistry
- type ReplicationTrigger
- type Status
Constants ¶
View Source
const Namespace = "harbor"
Variables ¶
This section is empty.
Functions ¶
func Defaults ¶
func Defaults(p *types.PlatformConfig)
func ReplicateAll ¶
func UpdateSettings ¶
Types ¶
type Client ¶
func (*Client) ListMembers ¶
func (harbor *Client) ListMembers(project string) ([]ProjectMember, error)
func (*Client) ListReplicationPolicies ¶
func (harbor *Client) ListReplicationPolicies() (policies []ReplicationPolicy, customErr error)
func (*Client) TriggerReplication ¶
func (harbor *Client) TriggerReplication(id int) (*Replication, error)
func (*Client) UpdateSettings ¶
func (harbor *Client) UpdateSettings(settings types.HarborSettings) error
type ProjectMember ¶
type ProjectMember struct { ID int `json:"id,omitempty"` ProjectID int `json:"project_id,omitempty"` EntityName string `json:"entity_name,omitempty"` RoleName string `json:"role_name,omitempty"` RoleID int `json:"role_id,omitempty"` EntityID int `json:"entity_id,omitempty"` EntityType string `json:"entity_type,omitempty"` }
type Replication ¶
type Replication struct { ID int `json:"id,omitempty"` PolicyID int `json:"policy_id,omitempty"` Status string `json:"status,omitempty"` StatusText string `json:"status_text,omitempty"` Trigger string `json:"trigger,omitempty"` Total int `json:"total,omitempty"` Failed int `json:"failed,omitempty"` Succeed int `json:"succeed,omitempty"` InProgress int `json:"in_progress,omitempty"` Stopped int `json:"stopped,omitempty"` StartTime string `json:"start_time,omitempty"` EndTime string `json:"end_time,omitempty"` }
type ReplicationFilter ¶
type ReplicationPolicy ¶
type ReplicationPolicy struct { ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` SrcRegistry ReplicationRegistry `json:"src_registry,omitempty"` DestRegistry ReplicationRegistry `json:"dest_registry,omitempty"` DestNamespace string `json:"dest_namespace,omitempty"` Trigger ReplicationTrigger `json:"trigger,omitempty"` Filters []ReplicationFilter `json:"filters,omitempty"` Deletion bool `json:"deletion,omitempty"` Override bool `json:"override,omitempty"` Enabled bool `json:"enabled,omitempty"` CreationTime string `json:"creation_time,omitempty"` UpdateTime string `json:"update_time,omitempty"` }
type ReplicationRegistry ¶
type ReplicationRegistry struct { ID int `json:"id,omitempty"` URL string `json:"url,omitempty"` Name string `json:"name,omitempty"` Credential struct { Type string `json:"type,omitempty"` AccessKey string `json:"access_key,omitempty"` AccessSecret string `json:"access_secret,omitempty"` } `json:"credential,omitempty"` Type string `json:"type,omitempty"` Insecure bool `json:"insecure,omitempty"` Description string `json:"description,omitempty"` Status string `json:"status,omitempty"` CreationTime string `json:"creation_time,omitempty"` UpdateTime string `json:"update_time,omitempty"` }
type ReplicationTrigger ¶
Click to show internal directories.
Click to hide internal directories.