config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package config is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnParseWrapper

func IgnParseWrapper(rawIgn []byte) (interface{}, error)

func ParseAndConvertConfig

func ParseAndConvertConfig(rawIgn []byte) (ignv3types.Config, error)

ParseAndConvertConfig parses rawIgn V3 ignition bytes and returns a V3 config or an error.

Types

type Controller

type Controller interface {
	Initialize(ctx context.Context, current *v1alpha1.RenderedDeviceSpec)
	Sync(ctx context.Context, current, desired *v1alpha1.RenderedDeviceSpec) error
	WriteIgnitionFiles(ctx context.Context, files []ignv3types.File) error
}

func NewController

func NewController(
	hookManager hook.Manager,
	deviceWriter fileio.Writer,
	log *log.PrefixLogger,
) Controller

NewController creates a new config controller.

type Ignition

type Ignition struct {
	Raw  json.RawMessage `json:"inline"`
	Name string          `json:"name"`
}

type MockController added in v0.2.0

type MockController struct {
	// contains filtered or unexported fields
}

MockController is a mock of Controller interface.

func NewMockController added in v0.2.0

func NewMockController(ctrl *gomock.Controller) *MockController

NewMockController creates a new mock instance.

func (*MockController) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockController) Initialize added in v0.2.0

func (m *MockController) Initialize(ctx context.Context, current *v1alpha1.RenderedDeviceSpec)

Initialize mocks base method.

func (*MockController) Sync added in v0.2.0

func (m *MockController) Sync(ctx context.Context, current, desired *v1alpha1.RenderedDeviceSpec) error

Sync mocks base method.

func (*MockController) WriteIgnitionFiles added in v0.2.0

func (m *MockController) WriteIgnitionFiles(ctx context.Context, files []types.File) error

WriteIgnitionFiles mocks base method.

type MockControllerMockRecorder added in v0.2.0

type MockControllerMockRecorder struct {
	// contains filtered or unexported fields
}

MockControllerMockRecorder is the mock recorder for MockController.

func (*MockControllerMockRecorder) Initialize added in v0.2.0

func (mr *MockControllerMockRecorder) Initialize(ctx, current any) *gomock.Call

Initialize indicates an expected call of Initialize.

func (*MockControllerMockRecorder) Sync added in v0.2.0

func (mr *MockControllerMockRecorder) Sync(ctx, current, desired any) *gomock.Call

Sync indicates an expected call of Sync.

func (*MockControllerMockRecorder) WriteIgnitionFiles added in v0.2.0

func (mr *MockControllerMockRecorder) WriteIgnitionFiles(ctx, files any) *gomock.Call

WriteIgnitionFiles indicates an expected call of WriteIgnitionFiles.

Jump to

Keyboard shortcuts

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