Documentation ¶
Index ¶
- type ArtifactReferenceClient
- func (c *ArtifactReferenceClient) AddToRelease(productSlug string, artifactReferenceID int, releaseVersion string) error
- func (c *ArtifactReferenceClient) Create(config pivnet.CreateArtifactReferenceConfig) error
- func (c *ArtifactReferenceClient) Delete(productSlug string, artifactReferenceID int) error
- func (c *ArtifactReferenceClient) Get(productSlug string, releaseVersion string, artifactReferenceID int) error
- func (c *ArtifactReferenceClient) List(productSlug string, releaseVersion string, artifactDigest string) error
- func (c *ArtifactReferenceClient) RemoveFromRelease(productSlug string, artifactReferenceID int, releaseVersion string) error
- func (c *ArtifactReferenceClient) Update(productSlug string, artifactReferenceID int, name *string, description *string, ...) error
- type PivnetClient
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
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) }
Click to show internal directories.
Click to hide internal directories.