Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type OciAPIClient ¶
OciAPIClient requests a registry of a given Image. If pull secret is nil it will request the registry without basic-auth. The stores a bearer token to avoid unnecessary traffic and registry restrictions of max login. If an API call code is 401 or 403 the client return a PermissionsError, else a ClientAPIError.
func (*OciAPIClient) GetTagsForImage ¶
func (c *OciAPIClient) GetTagsForImage(ctx context.Context, secret OciPullSecret) ([]string, error)
GetTagsForImage for configured client. If secret is nil the request will omit the BasicAuth HTTP header
type OciImage ¶
OciImage is the interface that wraps a Image representation and its required information in a formatted format that the client requires for different kind of API calls
type OciPullSecret ¶
OciPullSecret is the interface that wraps a pull secret representation with a username and password.