mocks

package
v0.0.0-...-5f0f127 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

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

func (_m *Client) GetHubUserByName(ctx context.Context, username string) (*model.User, error)

GetHubUserByName provides a mock function with given fields: ctx, username

func (*Client) GetHubUserOrgs

func (_m *Client) GetHubUserOrgs(ctx context.Context, authToken string) ([]model.Org, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL