Documentation
¶
Overview ¶
Package config is a generated GoMock package.
Index ¶
- func IgnParseWrapper(rawIgn []byte) (interface{}, error)
- func ParseAndConvertConfig(rawIgn []byte) (ignv3types.Config, error)
- type Controller
- type Ignition
- type MockController
- func (m *MockController) EXPECT() *MockControllerMockRecorder
- func (m *MockController) Initialize(ctx context.Context, current *v1alpha1.RenderedDeviceSpec)
- func (m *MockController) Sync(ctx context.Context, current, desired *v1alpha1.RenderedDeviceSpec) error
- func (m *MockController) WriteIgnitionFiles(ctx context.Context, files []types.File) error
- type MockControllerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnParseWrapper ¶
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
func (m *MockController) EXPECT() *MockControllerMockRecorder
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
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.