candlepin_client

package
v0.0.0-...-8ebdd08 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DevelOrgKey = "content-sources-test"

Variables

This section is empty.

Functions

This section is empty.

Types

type CandlepinClient

type CandlepinClient interface {
	CreateOwner() error
	ImportManifest(filename string) error
	ListContents(ownerKey string) ([]string, error)
}

func NewCandlepinClient

func NewCandlepinClient(ctx context.Context) (CandlepinClient, error)

type MockCandlepinClient

type MockCandlepinClient struct {
	mock.Mock
}

MockCandlepinClient is an autogenerated mock type for the CandlepinClient type

func NewMockCandlepinClient

func NewMockCandlepinClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCandlepinClient

NewMockCandlepinClient creates a new instance of MockCandlepinClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockCandlepinClient) CreateOwner

func (_m *MockCandlepinClient) CreateOwner() error

CreateOwner provides a mock function with given fields:

func (*MockCandlepinClient) ImportManifest

func (_m *MockCandlepinClient) ImportManifest(filename string) error

ImportManifest provides a mock function with given fields: filename

func (*MockCandlepinClient) ListContents

func (_m *MockCandlepinClient) ListContents(ownerKey string) ([]string, error)

ListContents provides a mock function with given fields: ownerKey

Jump to

Keyboard shortcuts

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