Documentation ¶
Index ¶
- func ConstructRepositoryName(identity v1alpha1.Identity) (string, error)
- type Client
- func (c *Client) GetComponentVersion(ctx context.Context, obj *v1alpha1.ComponentVersion, name, version string) (ocm.ComponentVersionAccess, error)
- func (c *Client) GetLatestComponentVersion(ctx context.Context, obj *v1alpha1.ComponentVersion) (string, error)
- func (c *Client) GetResource(ctx context.Context, cv *v1alpha1.ComponentVersion, ...) (io.ReadCloser, string, error)
- func (c *Client) ListComponentVersions(octx ocm.Context, obj *v1alpha1.ComponentVersion) ([]Version, error)
- func (c *Client) VerifyComponent(ctx context.Context, obj *v1alpha1.ComponentVersion, version string) (bool, error)
- type FetchVerifier
- type Fetcher
- type Verifier
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements the OCM fetcher interface.
func (*Client) GetComponentVersion ¶
func (c *Client) GetComponentVersion(ctx context.Context, obj *v1alpha1.ComponentVersion, name, version string) (ocm.ComponentVersionAccess, error)
GetComponentVersion returns a component version. It's the caller's responsibility to clean it up and close the component version once done with it.
func (*Client) GetLatestComponentVersion ¶ added in v0.1.0
func (*Client) GetResource ¶
func (c *Client) GetResource(ctx context.Context, cv *v1alpha1.ComponentVersion, resource v1alpha1.ResourceRef) (io.ReadCloser, string, error)
GetResource returns a reader for the resource data. It is the responsibility of the caller to close the reader.
func (*Client) ListComponentVersions ¶
func (*Client) VerifyComponent ¶
type FetchVerifier ¶ added in v0.1.0
FetchVerifier can fetch and verify components.
type Fetcher ¶ added in v0.1.0
type Fetcher interface { GetResource(ctx context.Context, cv *v1alpha1.ComponentVersion, resource v1alpha1.ResourceRef) (io.ReadCloser, string, error) GetComponentVersion(ctx context.Context, obj *v1alpha1.ComponentVersion, name, version string) (ocm.ComponentVersionAccess, error) GetLatestComponentVersion(ctx context.Context, obj *v1alpha1.ComponentVersion) (string, error) ListComponentVersions(ctx ocm.Context, obj *v1alpha1.ComponentVersion) ([]Version, error) }
Fetcher gets information about an OCM component Version based on a k8s component Version.
Click to show internal directories.
Click to hide internal directories.