artifactreference

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactReferenceClient

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

func NewArtifactReferenceClient

func NewArtifactReferenceClient(
	pivnetClient PivnetClient,
	eh errorhandler.ErrorHandler,
	format string,
	outputWriter io.Writer,
	logWriter io.Writer,
	printer printer.Printer,
	l logger.Logger,
) *ArtifactReferenceClient

func (*ArtifactReferenceClient) AddToRelease

func (c *ArtifactReferenceClient) AddToRelease(
	productSlug string,
	artifactReferenceID int,
	releaseVersion string,
) error

func (*ArtifactReferenceClient) Create

func (c *ArtifactReferenceClient) Create(config pivnet.CreateArtifactReferenceConfig) error

func (*ArtifactReferenceClient) Delete

func (c *ArtifactReferenceClient) Delete(productSlug string, artifactReferenceID int) error

func (*ArtifactReferenceClient) Get

func (c *ArtifactReferenceClient) Get(
	productSlug string,
	releaseVersion string,
	artifactReferenceID int,
) error

func (*ArtifactReferenceClient) List

func (c *ArtifactReferenceClient) List(productSlug string, releaseVersion string, artifactDigest string) error

func (*ArtifactReferenceClient) RemoveFromRelease

func (c *ArtifactReferenceClient) RemoveFromRelease(
	productSlug string,
	artifactReferenceID int,
	releaseVersion string,
) error

func (*ArtifactReferenceClient) Update

func (c *ArtifactReferenceClient) Update(productSlug string, artifactReferenceID int, name *string, description *string, docsURL *string, systemRequirements *[]string) error

type PivnetClient

type PivnetClient interface {
	ArtifactReferences(productSlug string) ([]pivnet.ArtifactReference, error)
	ArtifactReferencesForRelease(productSlug string, releaseID int) ([]pivnet.ArtifactReference, error)
	ArtifactReferencesForDigest(productSlug string, artifactReferenceDigest string) ([]pivnet.ArtifactReference, error)
	ArtifactReference(productSlug string, artifactReferenceID int) (pivnet.ArtifactReference, error)
	ArtifactReferenceForRelease(productSlug string, releaseID int, artifactReferenceID int) (pivnet.ArtifactReference, error)
	ReleaseForVersion(productSlug string, releaseVersion string) (pivnet.Release, error)
	CreateArtifactReference(config pivnet.CreateArtifactReferenceConfig) (pivnet.ArtifactReference, error)
	DeleteArtifactReference(productSlug string, releaseID int) (pivnet.ArtifactReference, error)
	AddArtifactReferenceToRelease(productSlug string, artifactReferenceID int, releaseID int) error
	RemoveArtifactReferenceFromRelease(productSlug string, artifactReferenceID int, releaseID int) error
	UpdateArtifactReference(productSlug string, artifactReference pivnet.ArtifactReference) (pivnet.ArtifactReference, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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