api

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageScanJob

type ImageScanJob struct {
	// contains filtered or unexported fields
}

ImageScanJob handles /api/imageScanJobs /api/imageScanJobs/:id/log

func (*ImageScanJob) GetLog

func (isj *ImageScanJob) GetLog()

GetLog gets logs of the job

func (*ImageScanJob) Post

func (isj *ImageScanJob) Post()

Post creates a scanner job and hand it to statemachine.

func (*ImageScanJob) Prepare

func (isj *ImageScanJob) Prepare()

Prepare ...

type RepActionReq

type RepActionReq struct {
	PolicyID int64  `json:"policy_id"`
	Action   string `json:"action"`
}

RepActionReq holds informations of request for /api/replicationJobs/actions

type ReplicationJob

type ReplicationJob struct {
	// contains filtered or unexported fields
}

ReplicationJob handles /api/replicationJobs /api/replicationJobs/:id/log /api/replicationJobs/actions

func (*ReplicationJob) GetLog

func (rj *ReplicationJob) GetLog()

GetLog gets logs of the job

func (*ReplicationJob) HandleAction

func (rj *ReplicationJob) HandleAction()

HandleAction supports some operations to all the jobs of one policy

func (*ReplicationJob) Post

func (rj *ReplicationJob) Post()

Post creates replication jobs according to the policy.

func (*ReplicationJob) Prepare

func (rj *ReplicationJob) Prepare()

Prepare ...

type ReplicationReq

type ReplicationReq struct {
	PolicyID  int64    `json:"policy_id"`
	Repo      string   `json:"repository"`
	Operation string   `json:"operation"`
	TagList   []string `json:"tags"`
}

ReplicationReq holds informations of request for /api/replicationJobs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL