commands

package
v0.0.0-...-0342304 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

AlignImageToPage will align the file to LacrosPageSize page alignment and return the number of page blocks.

Append the hashtree (merkle tree) onto the end of the Lacros image.

CopyImage downloads the metadata file locally

CopyMetadata downloads the metadata file locally

CreateImageDirectory downloads the metadata file locally

FixOwnership changes file mode and owner of provisioned files if the path is prefixed with the CrOS component path.

GetMetadata translates the metadata from a file to a local JSON repr

PublishVersion writes the Lacros version to the latest-version file.

RunVerity generates the verity (hashtree and table) from Lacros image.

writeComponentManifest will create and write the Lacros component manifest out usable by component updater.

writeManifest will create and write the Lacros component manifest out.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlignImageToPageCommand

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

func (*AlignImageToPageCommand) Execute

func (c *AlignImageToPageCommand) Execute(log *log.Logger) error

func (*AlignImageToPageCommand) GetErrorMessage

func (c *AlignImageToPageCommand) GetErrorMessage() string

func (*AlignImageToPageCommand) GetStatus

func (*AlignImageToPageCommand) Revert

func (c *AlignImageToPageCommand) Revert() error

type AppendHashTreeCommand

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

func NewAppendHashTreeCommand

func NewAppendHashTreeCommand(ctx context.Context, cs *service.LaCrOSService) *AppendHashTreeCommand

func (*AppendHashTreeCommand) Execute

func (c *AppendHashTreeCommand) Execute(log *log.Logger) error

func (*AppendHashTreeCommand) GetErrorMessage

func (c *AppendHashTreeCommand) GetErrorMessage() string

func (*AppendHashTreeCommand) GetStatus

func (*AppendHashTreeCommand) Revert

func (c *AppendHashTreeCommand) Revert() error

type CopyImageCommand

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

func NewCopyImageCommand

func NewCopyImageCommand(ctx context.Context, cs *service.LaCrOSService) *CopyImageCommand

func (*CopyImageCommand) Execute

func (c *CopyImageCommand) Execute(log *log.Logger) error

func (*CopyImageCommand) GetErrorMessage

func (c *CopyImageCommand) GetErrorMessage() string

func (*CopyImageCommand) GetStatus

func (*CopyImageCommand) Revert

func (c *CopyImageCommand) Revert() error

type CopyMetadataCommand

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

func NewCopyMetadataCommand

func NewCopyMetadataCommand(ctx context.Context, cs *service.LaCrOSService) *CopyMetadataCommand

func (*CopyMetadataCommand) Execute

func (c *CopyMetadataCommand) Execute(log *log.Logger) error

func (*CopyMetadataCommand) GetErrorMessage

func (c *CopyMetadataCommand) GetErrorMessage() string

func (*CopyMetadataCommand) GetStatus

func (*CopyMetadataCommand) Revert

func (c *CopyMetadataCommand) Revert() error

type CreateImageDirectoryCommand

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

func (*CreateImageDirectoryCommand) Execute

func (c *CreateImageDirectoryCommand) Execute(log *log.Logger) error

func (*CreateImageDirectoryCommand) GetErrorMessage

func (c *CreateImageDirectoryCommand) GetErrorMessage() string

func (*CreateImageDirectoryCommand) GetStatus

func (*CreateImageDirectoryCommand) Revert

func (c *CreateImageDirectoryCommand) Revert() error

type FixOwnershipCommand

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

func NewFixOwnershipCommand

func NewFixOwnershipCommand(ctx context.Context, cs *service.LaCrOSService) *FixOwnershipCommand

func (*FixOwnershipCommand) Execute

func (c *FixOwnershipCommand) Execute(log *log.Logger) error

func (*FixOwnershipCommand) GetErrorMessage

func (c *FixOwnershipCommand) GetErrorMessage() string

func (*FixOwnershipCommand) GetStatus

func (*FixOwnershipCommand) Revert

func (c *FixOwnershipCommand) Revert() error

type GetMetadataCommand

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

func NewGetMetadataCommand

func NewGetMetadataCommand(ctx context.Context, cs *service.LaCrOSService) *GetMetadataCommand

func (*GetMetadataCommand) Execute

func (c *GetMetadataCommand) Execute(log *log.Logger) error

func (*GetMetadataCommand) GetErrorMessage

func (c *GetMetadataCommand) GetErrorMessage() string

func (*GetMetadataCommand) GetStatus

func (*GetMetadataCommand) Revert

func (c *GetMetadataCommand) Revert() error

type PublishVersionCommand

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

func NewPublishVersionCommand

func NewPublishVersionCommand(ctx context.Context, cs *service.LaCrOSService) *PublishVersionCommand

func (*PublishVersionCommand) Execute

func (c *PublishVersionCommand) Execute(log *log.Logger) error

func (*PublishVersionCommand) GetErrorMessage

func (c *PublishVersionCommand) GetErrorMessage() string

func (*PublishVersionCommand) GetStatus

func (*PublishVersionCommand) Revert

func (c *PublishVersionCommand) Revert() error

type RunVerityCommand

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

func NewRunVerityCommand

func NewRunVerityCommand(ctx context.Context, cs *service.LaCrOSService) *RunVerityCommand

func (*RunVerityCommand) Execute

func (c *RunVerityCommand) Execute(log *log.Logger) error

func (*RunVerityCommand) GetErrorMessage

func (c *RunVerityCommand) GetErrorMessage() string

func (*RunVerityCommand) GetStatus

func (*RunVerityCommand) Revert

func (c *RunVerityCommand) Revert() error

type WriteComponentManifestCommand

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

func (*WriteComponentManifestCommand) Execute

func (c *WriteComponentManifestCommand) Execute(log *log.Logger) error

func (*WriteComponentManifestCommand) GetErrorMessage

func (c *WriteComponentManifestCommand) GetErrorMessage() string

func (*WriteComponentManifestCommand) GetStatus

func (*WriteComponentManifestCommand) Revert

type WriteManifestCommand

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

func NewWriteManifestCommand

func NewWriteManifestCommand(ctx context.Context, cs *service.LaCrOSService) *WriteManifestCommand

func (*WriteManifestCommand) Execute

func (c *WriteManifestCommand) Execute(log *log.Logger) error

func (*WriteManifestCommand) GetErrorMessage

func (c *WriteManifestCommand) GetErrorMessage() string

func (*WriteManifestCommand) GetStatus

func (*WriteManifestCommand) Revert

func (c *WriteManifestCommand) Revert() error

Jump to

Keyboard shortcuts

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