Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ostreeclient.go
Generated by this command:
mockgen -source=ostreeclient.go -package=ostreeclient -destination=mock_ostreeclient.go
Package ostreeclient is a generated GoMock package.
Index ¶
- type Client
- func (c *Client) Deploy(osname, refsepc string, kargs []string, ...) error
- func (c *Client) GetDeployment(stateroot string) (string, error)
- func (c *Client) GetDeploymentDir(stateroot string) (string, error)
- func (c *Client) IsOstreeAdminSetDefaultFeatureEnabled() bool
- func (c *Client) OSInit(osname string) error
- func (c *Client) PullLocal(repoPath string) error
- func (c *Client) SetDefaultDeployment(index int) error
- func (c *Client) Undeploy(ostreeIndex int) error
- type IClient
- type MockIClient
- func (m *MockIClient) Deploy(osname, refsepc string, kargs []string, ...) error
- func (m *MockIClient) EXPECT() *MockIClientMockRecorder
- func (m *MockIClient) GetDeployment(osname string) (string, error)
- func (m *MockIClient) GetDeploymentDir(osname string) (string, error)
- func (m *MockIClient) IsOstreeAdminSetDefaultFeatureEnabled() bool
- func (m *MockIClient) OSInit(osname string) error
- func (m *MockIClient) PullLocal(repoPath string) error
- func (m *MockIClient) SetDefaultDeployment(index int) error
- func (m *MockIClient) Undeploy(ostreeIndex int) error
- type MockIClientMockRecorder
- func (mr *MockIClientMockRecorder) Deploy(osname, refsepc, kargs, rpmOstreeClient, ibi any) *gomock.Call
- func (mr *MockIClientMockRecorder) GetDeployment(osname any) *gomock.Call
- func (mr *MockIClientMockRecorder) GetDeploymentDir(osname any) *gomock.Call
- func (mr *MockIClientMockRecorder) IsOstreeAdminSetDefaultFeatureEnabled() *gomock.Call
- func (mr *MockIClientMockRecorder) OSInit(osname any) *gomock.Call
- func (mr *MockIClientMockRecorder) PullLocal(repoPath any) *gomock.Call
- func (mr *MockIClientMockRecorder) SetDefaultDeployment(index any) *gomock.Call
- func (mr *MockIClientMockRecorder) Undeploy(ostreeIndex any) *gomock.Call
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
}
func (*Client) GetDeploymentDir ¶
func (*Client) IsOstreeAdminSetDefaultFeatureEnabled ¶
func (*Client) SetDefaultDeployment ¶
type IClient ¶
type IClient interface { PullLocal(repoPath string) error OSInit(osname string) error Deploy(osname, refsepc string, kargs []string, rpmOstreeClient rpmostreeclient.IClient, ibi bool) error Undeploy(ostreeIndex int) error SetDefaultDeployment(index int) error IsOstreeAdminSetDefaultFeatureEnabled() bool GetDeployment(osname string) (string, error) GetDeploymentDir(osname string) (string, error) }
type MockIClient ¶
type MockIClient struct {
// contains filtered or unexported fields
}
MockIClient is a mock of IClient interface.
func NewMockIClient ¶
func NewMockIClient(ctrl *gomock.Controller) *MockIClient
NewMockIClient creates a new mock instance.
func (*MockIClient) Deploy ¶
func (m *MockIClient) Deploy(osname, refsepc string, kargs []string, rpmOstreeClient rpmostreeclient.IClient, ibi bool) error
Deploy mocks base method.
func (*MockIClient) EXPECT ¶
func (m *MockIClient) EXPECT() *MockIClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIClient) GetDeployment ¶
func (m *MockIClient) GetDeployment(osname string) (string, error)
GetDeployment mocks base method.
func (*MockIClient) GetDeploymentDir ¶
func (m *MockIClient) GetDeploymentDir(osname string) (string, error)
GetDeploymentDir mocks base method.
func (*MockIClient) IsOstreeAdminSetDefaultFeatureEnabled ¶
func (m *MockIClient) IsOstreeAdminSetDefaultFeatureEnabled() bool
IsOstreeAdminSetDefaultFeatureEnabled mocks base method.
func (*MockIClient) OSInit ¶
func (m *MockIClient) OSInit(osname string) error
OSInit mocks base method.
func (*MockIClient) PullLocal ¶
func (m *MockIClient) PullLocal(repoPath string) error
PullLocal mocks base method.
func (*MockIClient) SetDefaultDeployment ¶
func (m *MockIClient) SetDefaultDeployment(index int) error
SetDefaultDeployment mocks base method.
func (*MockIClient) Undeploy ¶
func (m *MockIClient) Undeploy(ostreeIndex int) error
Undeploy mocks base method.
type MockIClientMockRecorder ¶
type MockIClientMockRecorder struct {
// contains filtered or unexported fields
}
MockIClientMockRecorder is the mock recorder for MockIClient.
func (*MockIClientMockRecorder) Deploy ¶
func (mr *MockIClientMockRecorder) Deploy(osname, refsepc, kargs, rpmOstreeClient, ibi any) *gomock.Call
Deploy indicates an expected call of Deploy.
func (*MockIClientMockRecorder) GetDeployment ¶
func (mr *MockIClientMockRecorder) GetDeployment(osname any) *gomock.Call
GetDeployment indicates an expected call of GetDeployment.
func (*MockIClientMockRecorder) GetDeploymentDir ¶
func (mr *MockIClientMockRecorder) GetDeploymentDir(osname any) *gomock.Call
GetDeploymentDir indicates an expected call of GetDeploymentDir.
func (*MockIClientMockRecorder) IsOstreeAdminSetDefaultFeatureEnabled ¶
func (mr *MockIClientMockRecorder) IsOstreeAdminSetDefaultFeatureEnabled() *gomock.Call
IsOstreeAdminSetDefaultFeatureEnabled indicates an expected call of IsOstreeAdminSetDefaultFeatureEnabled.
func (*MockIClientMockRecorder) OSInit ¶
func (mr *MockIClientMockRecorder) OSInit(osname any) *gomock.Call
OSInit indicates an expected call of OSInit.
func (*MockIClientMockRecorder) PullLocal ¶
func (mr *MockIClientMockRecorder) PullLocal(repoPath any) *gomock.Call
PullLocal indicates an expected call of PullLocal.
func (*MockIClientMockRecorder) SetDefaultDeployment ¶
func (mr *MockIClientMockRecorder) SetDefaultDeployment(index any) *gomock.Call
SetDefaultDeployment indicates an expected call of SetDefaultDeployment.