Documentation
¶
Index ¶
- type Client
- func (c *Client) GetComponentVersion(ctx context.Context, obj *v1alpha1.ComponentSubscription, version string) (ocm.ComponentVersionAccess, error)
- func (c *Client) GetLatestSourceComponentVersion(ctx context.Context, obj *v1alpha1.ComponentSubscription) (string, error)
- func (c *Client) TransferComponent(ctx context.Context, obj *v1alpha1.ComponentSubscription, ...) error
- func (c *Client) VerifySourceComponent(ctx context.Context, obj *v1alpha1.ComponentSubscription, version string) (bool, error)
- type FetchVerifier
- type Fetcher
- type Verifier
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.ComponentSubscription, 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) GetLatestSourceComponentVersion ¶
func (*Client) TransferComponent ¶
func (c *Client) TransferComponent(ctx context.Context, obj *v1alpha1.ComponentSubscription, sourceComponentVersion ocm.ComponentVersionAccess, version string) error
func (*Client) VerifySourceComponent ¶
type FetchVerifier ¶
FetchVerifier can fetch and verify components.
type Fetcher ¶
type Fetcher interface { GetComponentVersion(ctx context.Context, obj *v1alpha1.ComponentSubscription, version string) (ocm.ComponentVersionAccess, error) GetLatestSourceComponentVersion(ctx context.Context, obj *v1alpha1.ComponentSubscription) (string, error) TransferComponent(ctx context.Context, obj *v1alpha1.ComponentSubscription, sourceComponentVersion ocm.ComponentVersionAccess, version string) 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.