Documentation ¶
Index ¶
- type Client
- func (_m *Client) DownloadLicenseFromHub(ctx context.Context, authToken string, subscriptionID string) (*model.IssuedLicense, error)
- func (_m *Client) GenerateNewTrialSubscription(ctx context.Context, authToken string, dockerID string, email string) (string, error)
- func (_m *Client) GetHubUserByName(ctx context.Context, username string) (*model.User, error)
- func (_m *Client) GetHubUserOrgs(ctx context.Context, authToken string) ([]model.Org, error)
- func (_m *Client) ListSubscriptions(ctx context.Context, authToken string, dockerID string) ([]*model.Subscription, error)
- func (_m *Client) ListSubscriptionsDetails(ctx context.Context, authToken string, dockerID string) ([]*model.SubscriptionDetail, error)
- func (_m *Client) LoadLocalLicense(ctx context.Context, dclnt licensing.WrappedDockerClient) (*model.Subscription, error)
- func (_m *Client) LoginViaAuth(ctx context.Context, username string, password string) (string, error)
- func (_m *Client) ParseLicense(license []byte) (*model.IssuedLicense, error)
- func (_m *Client) StoreLicense(ctx context.Context, dclnt licensing.WrappedDockerClient, ...) error
- func (_m *Client) SummarizeLicense(res *model.CheckResponse, keyID string) *model.Subscription
- func (_m *Client) VerifyLicense(ctx context.Context, license model.IssuedLicense) (*model.CheckResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) DownloadLicenseFromHub ¶
func (_m *Client) DownloadLicenseFromHub(ctx context.Context, authToken string, subscriptionID string) (*model.IssuedLicense, error)
DownloadLicenseFromHub provides a mock function with given fields: ctx, authToken, subscriptionID
func (*Client) GenerateNewTrialSubscription ¶
func (_m *Client) GenerateNewTrialSubscription(ctx context.Context, authToken string, dockerID string, email string) (string, error)
GenerateNewTrialSubscription provides a mock function with given fields: ctx, authToken, dockerID, email
func (*Client) GetHubUserByName ¶
GetHubUserByName provides a mock function with given fields: ctx, username
func (*Client) GetHubUserOrgs ¶
GetHubUserOrgs provides a mock function with given fields: ctx, authToken
func (*Client) ListSubscriptions ¶
func (_m *Client) ListSubscriptions(ctx context.Context, authToken string, dockerID string) ([]*model.Subscription, error)
ListSubscriptions provides a mock function with given fields: ctx, authToken, dockerID
func (*Client) ListSubscriptionsDetails ¶
func (_m *Client) ListSubscriptionsDetails(ctx context.Context, authToken string, dockerID string) ([]*model.SubscriptionDetail, error)
ListSubscriptionsDetails provides a mock function with given fields: ctx, authToken, dockerID
func (*Client) LoadLocalLicense ¶
func (_m *Client) LoadLocalLicense(ctx context.Context, dclnt licensing.WrappedDockerClient) (*model.Subscription, error)
LoadLocalLicense provides a mock function with given fields: ctx, dclnt
func (*Client) LoginViaAuth ¶
func (_m *Client) LoginViaAuth(ctx context.Context, username string, password string) (string, error)
LoginViaAuth provides a mock function with given fields: ctx, username, password
func (*Client) ParseLicense ¶
func (_m *Client) ParseLicense(license []byte) (*model.IssuedLicense, error)
ParseLicense provides a mock function with given fields: license
func (*Client) StoreLicense ¶
func (_m *Client) StoreLicense(ctx context.Context, dclnt licensing.WrappedDockerClient, licenses *model.IssuedLicense, localRootDir string) error
StoreLicense provides a mock function with given fields: ctx, dclnt, licenses, localRootDir
func (*Client) SummarizeLicense ¶
func (_m *Client) SummarizeLicense(res *model.CheckResponse, keyID string) *model.Subscription
SummarizeLicense provides a mock function with given fields: res, keyID
func (*Client) VerifyLicense ¶
func (_m *Client) VerifyLicense(ctx context.Context, license model.IssuedLicense) (*model.CheckResponse, error)
VerifyLicense provides a mock function with given fields: ctx, license