Documentation ¶
Index ¶
- type ImageReferenceClient
- func (c *ImageReferenceClient) AddToRelease(productSlug string, imageReferenceID int, releaseVersion string) error
- func (c *ImageReferenceClient) Create(config pivnet.CreateImageReferenceConfig) error
- func (c *ImageReferenceClient) Delete(productSlug string, imageReferenceID int) error
- func (c *ImageReferenceClient) Get(productSlug string, releaseVersion string, imageReferenceID int) error
- func (c *ImageReferenceClient) List(productSlug string, releaseVersion string, imageDigest string) error
- func (c *ImageReferenceClient) RemoveFromRelease(productSlug string, imageReferenceID int, releaseVersion string) error
- func (c *ImageReferenceClient) Update(productSlug string, imageReferenceID 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 ImageReferenceClient ¶
type ImageReferenceClient struct {
// contains filtered or unexported fields
}
func NewImageReferenceClient ¶
func NewImageReferenceClient( pivnetClient PivnetClient, eh errorhandler.ErrorHandler, format string, outputWriter io.Writer, logWriter io.Writer, printer printer.Printer, l logger.Logger, ) *ImageReferenceClient
func (*ImageReferenceClient) AddToRelease ¶ added in v0.0.65
func (c *ImageReferenceClient) AddToRelease( productSlug string, imageReferenceID int, releaseVersion string, ) error
func (*ImageReferenceClient) Create ¶
func (c *ImageReferenceClient) Create(config pivnet.CreateImageReferenceConfig) error
func (*ImageReferenceClient) Delete ¶ added in v0.0.65
func (c *ImageReferenceClient) Delete(productSlug string, imageReferenceID int) error
func (*ImageReferenceClient) Get ¶ added in v0.0.65
func (c *ImageReferenceClient) Get( productSlug string, releaseVersion string, imageReferenceID int, ) error
func (*ImageReferenceClient) List ¶ added in v0.0.65
func (c *ImageReferenceClient) List(productSlug string, releaseVersion string, imageDigest string) error
func (*ImageReferenceClient) RemoveFromRelease ¶ added in v0.0.65
func (c *ImageReferenceClient) RemoveFromRelease( productSlug string, imageReferenceID int, releaseVersion string, ) error
type PivnetClient ¶
type PivnetClient interface { ImageReferences(productSlug string) ([]pivnet.ImageReference, error) ImageReferencesForRelease(productSlug string, releaseID int) ([]pivnet.ImageReference, error) ImageReferencesForDigest(productSlug string, imageReferenceDigest string) ([]pivnet.ImageReference, error) ImageReference(productSlug string, imageReferenceID int) (pivnet.ImageReference, error) ImageReferenceForRelease(productSlug string, releaseID int, imageReferenceID int) (pivnet.ImageReference, error) ReleaseForVersion(productSlug string, releaseVersion string) (pivnet.Release, error) CreateImageReference(config pivnet.CreateImageReferenceConfig) (pivnet.ImageReference, error) DeleteImageReference(productSlug string, releaseID int) (pivnet.ImageReference, error) AddImageReferenceToRelease(productSlug string, imageReferenceID int, releaseID int) error RemoveImageReferenceFromRelease(productSlug string, imageReferenceID int, releaseID int) error UpdateImageReference(productSlug string, imageReference pivnet.ImageReference) (pivnet.ImageReference, error) }
Click to show internal directories.
Click to hide internal directories.