Documentation
¶
Overview ¶
Package container is a generated GoMock package.
Index ¶
- Constants
- Variables
- func IsOsImageReconciled(host *BootcHost, desiredSpec *v1alpha1.RenderedDeviceSpec) (bool, error)
- type BootcClient
- type BootcCmd
- type BootcHost
- type ImageDetails
- type ImageSpec
- type ImageStatus
- type Metadata
- type MockBootcClient
- func (m *MockBootcClient) Apply(ctx context.Context) error
- func (m *MockBootcClient) EXPECT() *MockBootcClientMockRecorder
- func (m *MockBootcClient) Status(ctx context.Context) (*BootcHost, error)
- func (m *MockBootcClient) Switch(ctx context.Context, image string) error
- func (m *MockBootcClient) UsrOverlay(ctx context.Context) error
- type MockBootcClientMockRecorder
- type OstreeDetails
- type Spec
- type Status
Constants ¶
const (
CmdBootc = "bootc"
)
Variables ¶
var (
ErrParsingImage = fmt.Errorf("unable to parse image reference into a valid bootc target")
)
Functions ¶
func IsOsImageReconciled ¶
func IsOsImageReconciled(host *BootcHost, desiredSpec *v1alpha1.RenderedDeviceSpec) (bool, error)
IsOsImageReconciled returns true if the booted image equals the target for the spec image.
Types ¶
type BootcClient ¶
type BootcCmd ¶
type BootcCmd struct {
// contains filtered or unexported fields
}
func NewBootcCmd ¶
NewBootcCmd creates a new bootc command.
type BootcHost ¶
type BootcHost struct {
APIVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Metadata Metadata `json:"metadata"`
Spec Spec `json:"spec"`
Status Status `json:"status"`
}
func (*BootcHost) GetBootedImage ¶
func (*BootcHost) GetBootedImageDigest ¶ added in v0.3.0
func (*BootcHost) GetRollbackImage ¶
func (*BootcHost) GetStagedImage ¶
type ImageDetails ¶
type ImageStatus ¶
type ImageStatus struct {
Image ImageDetails `json:"image"`
CachedUpdate *bool `json:"cachedUpdate"`
Incompatible bool `json:"incompatible"`
Pinned bool `json:"pinned"`
Ostree OstreeDetails `json:"ostree"`
}
type MockBootcClient ¶
type MockBootcClient struct {
// contains filtered or unexported fields
}
MockBootcClient is a mock of BootcClient interface.
func NewMockBootcClient ¶
func NewMockBootcClient(ctrl *gomock.Controller) *MockBootcClient
NewMockBootcClient creates a new mock instance.
func (*MockBootcClient) Apply ¶
func (m *MockBootcClient) Apply(ctx context.Context) error
Apply mocks base method.
func (*MockBootcClient) EXPECT ¶
func (m *MockBootcClient) EXPECT() *MockBootcClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBootcClient) Status ¶
func (m *MockBootcClient) Status(ctx context.Context) (*BootcHost, error)
Status mocks base method.
func (*MockBootcClient) Switch ¶
func (m *MockBootcClient) Switch(ctx context.Context, image string) error
Switch mocks base method.
func (*MockBootcClient) UsrOverlay ¶
func (m *MockBootcClient) UsrOverlay(ctx context.Context) error
UsrOverlay mocks base method.
type MockBootcClientMockRecorder ¶
type MockBootcClientMockRecorder struct {
// contains filtered or unexported fields
}
MockBootcClientMockRecorder is the mock recorder for MockBootcClient.
func (*MockBootcClientMockRecorder) Apply ¶
func (mr *MockBootcClientMockRecorder) Apply(ctx any) *gomock.Call
Apply indicates an expected call of Apply.
func (*MockBootcClientMockRecorder) Status ¶
func (mr *MockBootcClientMockRecorder) Status(ctx any) *gomock.Call
Status indicates an expected call of Status.
func (*MockBootcClientMockRecorder) Switch ¶
func (mr *MockBootcClientMockRecorder) Switch(ctx, image any) *gomock.Call
Switch indicates an expected call of Switch.
func (*MockBootcClientMockRecorder) UsrOverlay ¶
func (mr *MockBootcClientMockRecorder) UsrOverlay(ctx any) *gomock.Call
UsrOverlay indicates an expected call of UsrOverlay.
type OstreeDetails ¶
type Status ¶
type Status struct {
Staged ImageStatus `json:"staged"`
Booted ImageStatus `json:"booted"`
Rollback ImageStatus `json:"rollback"`
Type string `json:"type"`
}