Documentation ¶
Index ¶
- Variables
- func NewCertificationInput(project *CertProject) (*certificationInputBuilder, error)
- func NewPyxisClient(pyxisHost string, apiToken string, projectID string, httpClient HTTPClient) *pyxisClient
- type Artifact
- type CertImage
- type CertProject
- type CertificationInput
- type CertificationResults
- type Container
- type FreshnessGrade
- type HTTPClient
- type Label
- type Layer
- type ParsedData
- type RPM
- type RPMManifest
- type Repository
- type Tag
- type TestResults
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPyxis409StatusCode = errors.New("pyxis API returned a conflict")
Functions ¶
func NewCertificationInput ¶
func NewCertificationInput(project *CertProject) (*certificationInputBuilder, error)
NewCertificationInput accepts required values for submitting to Pyxis, and returns a CertificationInputBuilder for adding additional files as artifacts to the submission. The caller must call Finalize() in order to receive a *CertificationInput.
func NewPyxisClient ¶
func NewPyxisClient(pyxisHost string, apiToken string, projectID string, httpClient HTTPClient) *pyxisClient
Types ¶
type CertImage ¶
type CertImage struct { ID string `json:"_id,omitempty"` Certified bool `json:"certified"` Deleted bool `json:"deleted" default:"false"` DockerImageDigest string `json:"docker_image_digest,omitempty"` DockerImageID string `json:"docker_image_id,omitempty"` ImageID string `json:"image_id,omitempty"` ISVPID string `json:"isv_pid,omitempty"` // required ParsedData *ParsedData `json:"parsed_data,omitempty"` Architecture string `json:"architecture" default:"amd64"` RawConfig string `json:"raw_config,omitempty"` Repositories []Repository `json:"repositories,omitempty"` SumLayerSizeBytes int64 `json:"sum_layer_size_bytes,omitempty"` UncompressedTopLayerID string `json:"uncompressed_top_layer_id,omitempty"` FreshnessGrades []FreshnessGrade `json:"freshness_grades,omitempty"` }
type CertProject ¶
type CertProject struct { ID string `json:"_id,omitempty"` CertificationStatus string `json:"certification_status" default:"In Progress"` Container Container `json:"container"` Name string `json:"name"` // required ProjectStatus string `json:"project_status"` // required Type string `json:"type,omitempty"` // required }
type CertificationInput ¶
type CertificationInput struct { CertProject *CertProject CertImage *CertImage TestResults *TestResults RpmManifest *RPMManifest Artifacts []Artifact }
type CertificationResults ¶
type CertificationResults struct { CertProject *CertProject CertImage *CertImage TestResults *TestResults }
type Container ¶
type Container struct { DockerConfigJSON string `json:"docker_config_json,omitempty"` Type string `json:"type,omitempty"` // conditionally required ISVPID string `json:"isv_pid,omitempty"` // required Registry string `json:"registry,omitempty"` Repository string `json:"repository,omitempty"` OsContentType string `json:"os_content_type,omitempty"` Privileged bool `json:"privileged,omitempty"` }
type FreshnessGrade ¶
type ParsedData ¶
type ParsedData struct { Architecture string `json:"architecture,omitempty"` Command string `json:"command,omitempty"` Comment string `json:"comment,omitempty"` Container string `json:"container,omitempty"` Created string `json:"created,omitempty"` DockerVersion string `json:"docker_version,omitempty"` ImageID string `json:"image_id,omitempty"` Labels []Label `json:"labels,omitempty"` // required Layers []string `json:"layers,omitempty"` // required OS string `json:"os,omitempty"` Ports string `json:"ports,omitempty"` Size int64 `json:"size,omitempty"` UncompressedLayerSizes []Layer `json:"uncompressed_layer_sizes,omitempty"` }
type RPM ¶
type RPM struct { Architecture string `json:"architecture,omitempty"` Gpg string `json:"gpg,omitempty"` Name string `json:"name,omitempty"` Nvra string `json:"nvra,omitempty"` Release string `json:"release,omitempty"` SrpmName string `json:"srpm_name,omitempty"` SrpmNevra string `json:"srpm_nevra,omitempty"` Summary string `json:"summary,omitempty"` Version string `json:"version,omitempty"` }
type RPMManifest ¶
type Repository ¶
type TestResults ¶
type TestResults struct { ID string `json:"_id,omitempty"` CertProject string `json:"cert_project,omitempty"` OrgID int `json:"org_id,omitempty"` Version string `json:"version,omitempty"` ImageID string `json:"image_id,omitempty"` formatters.UserResponse }
Click to show internal directories.
Click to hide internal directories.