ostreeclient

package
v0.0.0-...-d416164 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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

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) Deploy

func (c *Client) Deploy(osname, refsepc string, kargs []string, rpmOstreeClient rpmostreeclient.IClient, ibi bool) error

func (*Client) GetDeployment

func (c *Client) GetDeployment(stateroot string) (string, error)

func (*Client) GetDeploymentDir

func (c *Client) GetDeploymentDir(stateroot string) (string, error)

func (*Client) IsOstreeAdminSetDefaultFeatureEnabled

func (c *Client) IsOstreeAdminSetDefaultFeatureEnabled() bool

func (*Client) OSInit

func (c *Client) OSInit(osname string) error

func (*Client) PullLocal

func (c *Client) PullLocal(repoPath string) error

func (*Client) SetDefaultDeployment

func (c *Client) SetDefaultDeployment(index int) error

func (*Client) Undeploy

func (c *Client) Undeploy(ostreeIndex int) error

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)
}

func NewClient

func NewClient(executor ops.Execute, ibi bool) IClient

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.

func (*MockIClientMockRecorder) Undeploy

func (mr *MockIClientMockRecorder) Undeploy(ostreeIndex any) *gomock.Call

Undeploy indicates an expected call of Undeploy.

Jump to

Keyboard shortcuts

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