config

package
v0.2.0 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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