s4wave_apt

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package s4wave_apt implements apt repository block types and world operations.

Index

Constants

View Source
const AptBuildSpecTypeID = "spacewave-vm/apt/build-spec"

AptBuildSpecTypeID is the type identifier for AptBuildSpec objects.

View Source
const AptPackageTypeID = "spacewave-vm/apt/package"

AptPackageTypeID is the type identifier for AptPackage objects.

View Source
const AptRepositoryTypeID = "spacewave-vm/apt/repository"

AptRepositoryTypeID is the type identifier for AptRepository objects.

Variables

View Source
var (
	// ErrInvalidDebPackage is returned when a .deb package cannot be parsed.
	ErrInvalidDebPackage = errors.New("apt package: invalid deb package")
	// ErrUnsupportedDebControlCompression is returned for unsupported control archive compression.
	ErrUnsupportedDebControlCompression = errors.New("apt package: unsupported control archive compression")
	// ErrUnknownAptRepositoryState is returned for an unknown AptRepository state.
	ErrUnknownAptRepositoryState = errors.New("apt repository: unknown state")
	// ErrInvalidAptRepositoryStateTransition is returned for an illegal AptRepository state transition.
	ErrInvalidAptRepositoryStateTransition = errors.New("apt repository: invalid state transition")
	// ErrInvalidAptRepositoryInitialState is returned when creating a repository outside its seed state.
	ErrInvalidAptRepositoryInitialState = errors.New("apt repository: invalid initial state")
	// ErrUnknownAptPackageState is returned for an unknown AptPackage state.
	ErrUnknownAptPackageState = errors.New("apt package: unknown state")
	// ErrInvalidAptPackageStateTransition is returned for an illegal AptPackage state transition.
	ErrInvalidAptPackageStateTransition = errors.New("apt package: invalid state transition")
	// ErrInvalidAptPackageInitialState is returned when creating a package outside its seed states.
	ErrInvalidAptPackageInitialState = errors.New("apt package: invalid initial state")
	// ErrInvalidAptPackageIndexMetadata is returned when a package cannot be rendered into an apt index.
	ErrInvalidAptPackageIndexMetadata = errors.New("apt package: invalid index metadata")
)
View Source
var (
	AptRepositoryState_name = map[int32]string{
		0: "AptRepositoryState_EMPTY",
		1: "AptRepositoryState_INDEXING",
		2: "AptRepositoryState_READY",
		3: "AptRepositoryState_ERROR",
	}
	AptRepositoryState_value = map[string]int32{
		"AptRepositoryState_EMPTY":    0,
		"AptRepositoryState_INDEXING": 1,
		"AptRepositoryState_READY":    2,
		"AptRepositoryState_ERROR":    3,
	}
)

Enum value maps for AptRepositoryState.

View Source
var (
	AptPackageState_name = map[int32]string{
		0: "AptPackageState_IMPORTING",
		1: "AptPackageState_BUILT",
		2: "AptPackageState_PUBLISHED",
		3: "AptPackageState_SUPERSEDED",
	}
	AptPackageState_value = map[string]int32{
		"AptPackageState_IMPORTING":  0,
		"AptPackageState_BUILT":      1,
		"AptPackageState_PUBLISHED":  2,
		"AptPackageState_SUPERSEDED": 3,
	}
)

Enum value maps for AptPackageState.

View Source
var AddAptBuildSpecOpId = "spacewave-vm/apt/build-spec/add"

AddAptBuildSpecOpId is the operation id for AddAptBuildSpecOp.

View Source
var AddAptPackageOpId = "spacewave-vm/apt/package/add"

AddAptPackageOpId is the operation id for AddAptPackageOp.

View Source
var AptPublishPackageOpId = "spacewave-vm/apt/package/publish"

AptPublishPackageOpId is the operation id for AptPublishPackageOp.

View Source
var AptSupersedePackageOpId = "spacewave-vm/apt/package/supersede"

AptSupersedePackageOpId is the operation id for AptSupersedePackageOp.

View Source
var CreateAptRepositoryOpId = "spacewave-vm/apt/repository/create"

CreateAptRepositoryOpId is the operation id for CreateAptRepositoryOp.

View Source
var PredAptPackageBuildSpec = quad.IRI("spacewave-vm/apt/package-buildspec")

PredAptPackageBuildSpec links an AptPackage to the AptBuildSpec that produced it.

View Source
var PredAptRepoBuildSpec = quad.IRI("spacewave-vm/apt/repo-buildspec")

PredAptRepoBuildSpec links an AptRepository to an AptBuildSpec.

View Source
var PredAptRepoPackage = quad.IRI("spacewave-vm/apt/repo-package")

PredAptRepoPackage links an AptRepository to an AptPackage.

Functions

func AptPackagePoolFilename added in v0.52.0

func AptPackagePoolFilename(pkg *AptPackage) (string, error)

AptPackagePoolFilename returns the repository pool path for a package.

func CompressPackagesFileGzip added in v0.52.0

func CompressPackagesFileGzip(data []byte) ([]byte, error)

CompressPackagesFileGzip compresses Packages file bytes for Packages.gz.

func GeneratePackagesFile added in v0.52.0

func GeneratePackagesFile(packages []*AptPackage) ([]byte, error)

GeneratePackagesFile renders published packages in Debian Packages format.

func GeneratePackagesGzipFile added in v0.52.0

func GeneratePackagesGzipFile(packages []*AptPackage) ([]byte, error)

GeneratePackagesGzipFile renders published packages in gzip-compressed Debian Packages format.

func GenerateReleaseFile added in v0.52.0

func GenerateReleaseFile(repo *AptRepository, files map[string][]byte, date time.Time) ([]byte, error)

GenerateReleaseFile renders Debian Release metadata for generated index files.

func LookupAddAptBuildSpecOp added in v0.52.0

func LookupAddAptBuildSpecOp(ctx context.Context, operationTypeID string) (world.Operation, error)

LookupAddAptBuildSpecOp looks up an AddAptBuildSpecOp operation type.

func LookupAddAptPackageOp added in v0.52.0

func LookupAddAptPackageOp(ctx context.Context, operationTypeID string) (world.Operation, error)

LookupAddAptPackageOp looks up an AddAptPackageOp operation type.

func LookupAptOp added in v0.52.0

func LookupAptOp(ctx context.Context, operationTypeID string) (world.Operation, error)

LookupAptOp looks up built-in Apt operation types.

func LookupAptPublishPackageOp added in v0.52.0

func LookupAptPublishPackageOp(ctx context.Context, operationTypeID string) (world.Operation, error)

LookupAptPublishPackageOp looks up an AptPublishPackageOp operation type.

func LookupAptSupersedePackageOp added in v0.52.0

func LookupAptSupersedePackageOp(ctx context.Context, operationTypeID string) (world.Operation, error)

LookupAptSupersedePackageOp looks up an AptSupersedePackageOp operation type.

func LookupCreateAptRepositoryOp added in v0.52.0

func LookupCreateAptRepositoryOp(ctx context.Context, operationTypeID string) (world.Operation, error)

LookupCreateAptRepositoryOp looks up a CreateAptRepositoryOp operation type.

func NewAddAptBuildSpecOpBlock added in v0.52.0

func NewAddAptBuildSpecOpBlock() block.Block

NewAddAptBuildSpecOpBlock constructs a new AddAptBuildSpecOp block.

func NewAddAptPackageOpBlock added in v0.52.0

func NewAddAptPackageOpBlock() block.Block

NewAddAptPackageOpBlock constructs a new AddAptPackageOp block.

func NewAptBuildSpecBlock added in v0.52.0

func NewAptBuildSpecBlock() block.Block

NewAptBuildSpecBlock constructs a new AptBuildSpec block.

func NewAptPackageBlock

func NewAptPackageBlock() block.Block

NewAptPackageBlock constructs a new AptPackage block.

func NewAptPublishPackageOpBlock added in v0.52.0

func NewAptPublishPackageOpBlock() block.Block

NewAptPublishPackageOpBlock constructs a new AptPublishPackageOp block.

func NewAptRepositoryBlock

func NewAptRepositoryBlock() block.Block

NewAptRepositoryBlock constructs a new AptRepository block.

func NewAptSupersedePackageOpBlock added in v0.52.0

func NewAptSupersedePackageOpBlock() block.Block

NewAptSupersedePackageOpBlock constructs a new AptSupersedePackageOp block.

func NewCreateAptRepositoryOpBlock added in v0.52.0

func NewCreateAptRepositoryOpBlock() block.Block

NewCreateAptRepositoryOpBlock constructs a new CreateAptRepositoryOp block.

func StoreDebPackageBlock added in v0.52.0

func StoreDebPackageBlock(ctx context.Context, store DebPackageBlockWriter, deb []byte) (*block.BlockRef, error)

StoreDebPackageBlock stores .deb package data in the given block store.

Types

type AddAptBuildSpecOp added in v0.52.0

type AddAptBuildSpecOp struct {

	// RepositoryKey is the AptRepository object key.
	RepositoryKey string `protobuf:"bytes,1,opt,name=repository_key,json=repositoryKey,proto3" json:"repositoryKey,omitempty"`
	// BuildSpecKey is the key to create the AptBuildSpec at.
	BuildSpecKey string `protobuf:"bytes,2,opt,name=build_spec_key,json=buildSpecKey,proto3" json:"buildSpecKey,omitempty"`
	// BuildSpec carries the build recipe for the new spec.
	BuildSpec *AptBuildSpec `protobuf:"bytes,3,opt,name=build_spec,json=buildSpec,proto3" json:"buildSpec,omitempty"`
	// contains filtered or unexported fields
}

AddAptBuildSpecOp creates an AptBuildSpec and links it to an AptRepository.

func NewAddAptBuildSpecOp added in v0.52.0

func NewAddAptBuildSpecOp(repositoryKey, buildSpecKey string, buildSpec *AptBuildSpec) *AddAptBuildSpecOp

NewAddAptBuildSpecOp constructs a new AddAptBuildSpecOp.

func (*AddAptBuildSpecOp) ApplyWorldObjectOp added in v0.52.0

func (o *AddAptBuildSpecOp) ApplyWorldObjectOp(
	ctx context.Context,
	le *logrus.Entry,
	os world.ObjectState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldObjectOp applies the operation to a world object handle.

func (*AddAptBuildSpecOp) ApplyWorldOp added in v0.52.0

func (o *AddAptBuildSpecOp) ApplyWorldOp(
	ctx context.Context,
	le *logrus.Entry,
	ws world.WorldState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldOp applies the operation as a world operation.

func (*AddAptBuildSpecOp) CloneMessageVT added in v0.52.0

func (m *AddAptBuildSpecOp) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*AddAptBuildSpecOp) CloneVT added in v0.52.0

func (m *AddAptBuildSpecOp) CloneVT() *AddAptBuildSpecOp

func (*AddAptBuildSpecOp) EqualMessageVT added in v0.52.0

func (this *AddAptBuildSpecOp) EqualMessageVT(thatMsg any) bool

func (*AddAptBuildSpecOp) EqualVT added in v0.52.0

func (this *AddAptBuildSpecOp) EqualVT(that *AddAptBuildSpecOp) bool

func (*AddAptBuildSpecOp) GetBuildSpec added in v0.52.0

func (x *AddAptBuildSpecOp) GetBuildSpec() *AptBuildSpec

func (*AddAptBuildSpecOp) GetBuildSpecKey added in v0.52.0

func (x *AddAptBuildSpecOp) GetBuildSpecKey() string

func (*AddAptBuildSpecOp) GetOperationTypeId added in v0.52.0

func (o *AddAptBuildSpecOp) GetOperationTypeId() string

GetOperationTypeId returns the operation type identifier.

func (*AddAptBuildSpecOp) GetRepositoryKey added in v0.52.0

func (x *AddAptBuildSpecOp) GetRepositoryKey() string

func (*AddAptBuildSpecOp) MarshalBlock added in v0.52.0

func (o *AddAptBuildSpecOp) MarshalBlock() ([]byte, error)

MarshalBlock marshals the block to binary.

func (*AddAptBuildSpecOp) MarshalJSON added in v0.52.0

func (x *AddAptBuildSpecOp) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AddAptBuildSpecOp to JSON.

func (*AddAptBuildSpecOp) MarshalProtoJSON added in v0.52.0

func (x *AddAptBuildSpecOp) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AddAptBuildSpecOp message to JSON.

func (*AddAptBuildSpecOp) MarshalProtoText added in v0.52.0

func (x *AddAptBuildSpecOp) MarshalProtoText() string

func (*AddAptBuildSpecOp) MarshalToSizedBufferVT added in v0.52.0

func (m *AddAptBuildSpecOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AddAptBuildSpecOp) MarshalToVT added in v0.52.0

func (m *AddAptBuildSpecOp) MarshalToVT(dAtA []byte) (int, error)

func (*AddAptBuildSpecOp) MarshalVT added in v0.52.0

func (m *AddAptBuildSpecOp) MarshalVT() (dAtA []byte, err error)

func (*AddAptBuildSpecOp) ProtoMessage added in v0.52.0

func (*AddAptBuildSpecOp) ProtoMessage()

func (*AddAptBuildSpecOp) Reset added in v0.52.0

func (x *AddAptBuildSpecOp) Reset()

func (*AddAptBuildSpecOp) SizeVT added in v0.52.0

func (m *AddAptBuildSpecOp) SizeVT() (n int)

func (*AddAptBuildSpecOp) String added in v0.52.0

func (x *AddAptBuildSpecOp) String() string

func (*AddAptBuildSpecOp) UnmarshalBlock added in v0.52.0

func (o *AddAptBuildSpecOp) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the block from binary.

func (*AddAptBuildSpecOp) UnmarshalJSON added in v0.52.0

func (x *AddAptBuildSpecOp) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AddAptBuildSpecOp from JSON.

func (*AddAptBuildSpecOp) UnmarshalProtoJSON added in v0.52.0

func (x *AddAptBuildSpecOp) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AddAptBuildSpecOp message from JSON.

func (*AddAptBuildSpecOp) UnmarshalVT added in v0.52.0

func (m *AddAptBuildSpecOp) UnmarshalVT(dAtA []byte) error

func (*AddAptBuildSpecOp) Validate added in v0.52.0

func (o *AddAptBuildSpecOp) Validate() error

Validate performs cursory checks on the op.

type AddAptPackageOp added in v0.52.0

type AddAptPackageOp struct {

	// RepositoryKey is the AptRepository object key.
	RepositoryKey string `protobuf:"bytes,1,opt,name=repository_key,json=repositoryKey,proto3" json:"repositoryKey,omitempty"`
	// PackageKey is the key to create the AptPackage at.
	PackageKey string `protobuf:"bytes,2,opt,name=package_key,json=packageKey,proto3" json:"packageKey,omitempty"`
	// AptPackage carries the metadata for the new package.
	AptPackage *AptPackage `protobuf:"bytes,3,opt,name=apt_package,json=aptPackage,proto3" json:"aptPackage,omitempty"`
	// contains filtered or unexported fields
}

AddAptPackageOp creates an AptPackage and links it to an AptRepository.

func NewAddAptPackageOp added in v0.52.0

func NewAddAptPackageOp(repositoryKey, packageKey string, aptPackage *AptPackage) *AddAptPackageOp

NewAddAptPackageOp constructs a new AddAptPackageOp.

func (*AddAptPackageOp) ApplyWorldObjectOp added in v0.52.0

func (o *AddAptPackageOp) ApplyWorldObjectOp(
	ctx context.Context,
	le *logrus.Entry,
	os world.ObjectState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldObjectOp applies the operation to a world object handle.

func (*AddAptPackageOp) ApplyWorldOp added in v0.52.0

func (o *AddAptPackageOp) ApplyWorldOp(
	ctx context.Context,
	le *logrus.Entry,
	ws world.WorldState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldOp applies the operation as a world operation.

func (*AddAptPackageOp) CloneMessageVT added in v0.52.0

func (m *AddAptPackageOp) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*AddAptPackageOp) CloneVT added in v0.52.0

func (m *AddAptPackageOp) CloneVT() *AddAptPackageOp

func (*AddAptPackageOp) EqualMessageVT added in v0.52.0

func (this *AddAptPackageOp) EqualMessageVT(thatMsg any) bool

func (*AddAptPackageOp) EqualVT added in v0.52.0

func (this *AddAptPackageOp) EqualVT(that *AddAptPackageOp) bool

func (*AddAptPackageOp) GetAptPackage added in v0.52.0

func (x *AddAptPackageOp) GetAptPackage() *AptPackage

func (*AddAptPackageOp) GetOperationTypeId added in v0.52.0

func (o *AddAptPackageOp) GetOperationTypeId() string

GetOperationTypeId returns the operation type identifier.

func (*AddAptPackageOp) GetPackageKey added in v0.52.0

func (x *AddAptPackageOp) GetPackageKey() string

func (*AddAptPackageOp) GetRepositoryKey added in v0.52.0

func (x *AddAptPackageOp) GetRepositoryKey() string

func (*AddAptPackageOp) MarshalBlock added in v0.52.0

func (o *AddAptPackageOp) MarshalBlock() ([]byte, error)

MarshalBlock marshals the block to binary.

func (*AddAptPackageOp) MarshalJSON added in v0.52.0

func (x *AddAptPackageOp) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AddAptPackageOp to JSON.

func (*AddAptPackageOp) MarshalProtoJSON added in v0.52.0

func (x *AddAptPackageOp) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AddAptPackageOp message to JSON.

func (*AddAptPackageOp) MarshalProtoText added in v0.52.0

func (x *AddAptPackageOp) MarshalProtoText() string

func (*AddAptPackageOp) MarshalToSizedBufferVT added in v0.52.0

func (m *AddAptPackageOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AddAptPackageOp) MarshalToVT added in v0.52.0

func (m *AddAptPackageOp) MarshalToVT(dAtA []byte) (int, error)

func (*AddAptPackageOp) MarshalVT added in v0.52.0

func (m *AddAptPackageOp) MarshalVT() (dAtA []byte, err error)

func (*AddAptPackageOp) ProtoMessage added in v0.52.0

func (*AddAptPackageOp) ProtoMessage()

func (*AddAptPackageOp) Reset added in v0.52.0

func (x *AddAptPackageOp) Reset()

func (*AddAptPackageOp) SizeVT added in v0.52.0

func (m *AddAptPackageOp) SizeVT() (n int)

func (*AddAptPackageOp) String added in v0.52.0

func (x *AddAptPackageOp) String() string

func (*AddAptPackageOp) UnmarshalBlock added in v0.52.0

func (o *AddAptPackageOp) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the block from binary.

func (*AddAptPackageOp) UnmarshalJSON added in v0.52.0

func (x *AddAptPackageOp) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AddAptPackageOp from JSON.

func (*AddAptPackageOp) UnmarshalProtoJSON added in v0.52.0

func (x *AddAptPackageOp) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AddAptPackageOp message from JSON.

func (*AddAptPackageOp) UnmarshalVT added in v0.52.0

func (m *AddAptPackageOp) UnmarshalVT(dAtA []byte) error

func (*AddAptPackageOp) Validate added in v0.52.0

func (o *AddAptPackageOp) Validate() error

Validate performs cursory checks on the op.

type AptBuildConfig added in v0.52.0

type AptBuildConfig struct {

	// Env contains environment variables for the package build.
	Env map[string]string `` /* 147-byte string literal not displayed */
	// CrossCompilePrefix is the toolchain prefix, e.g. "i686-linux-gnu-".
	CrossCompilePrefix string `protobuf:"bytes,2,opt,name=cross_compile_prefix,json=crossCompilePrefix,proto3" json:"crossCompilePrefix,omitempty"`
	// contains filtered or unexported fields
}

AptBuildConfig stores build options for an AptBuildSpec.

func (*AptBuildConfig) CloneMessageVT added in v0.52.0

func (m *AptBuildConfig) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*AptBuildConfig) CloneVT added in v0.52.0

func (m *AptBuildConfig) CloneVT() *AptBuildConfig

func (*AptBuildConfig) EqualMessageVT added in v0.52.0

func (this *AptBuildConfig) EqualMessageVT(thatMsg any) bool

func (*AptBuildConfig) EqualVT added in v0.52.0

func (this *AptBuildConfig) EqualVT(that *AptBuildConfig) bool

func (*AptBuildConfig) GetCrossCompilePrefix added in v0.52.0

func (x *AptBuildConfig) GetCrossCompilePrefix() string

func (*AptBuildConfig) GetEnv added in v0.52.0

func (x *AptBuildConfig) GetEnv() map[string]string

func (*AptBuildConfig) MarshalJSON added in v0.52.0

func (x *AptBuildConfig) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AptBuildConfig to JSON.

func (*AptBuildConfig) MarshalProtoJSON added in v0.52.0

func (x *AptBuildConfig) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AptBuildConfig message to JSON.

func (*AptBuildConfig) MarshalProtoText added in v0.52.0

func (x *AptBuildConfig) MarshalProtoText() string

func (*AptBuildConfig) MarshalToSizedBufferVT added in v0.52.0

func (m *AptBuildConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AptBuildConfig) MarshalToVT added in v0.52.0

func (m *AptBuildConfig) MarshalToVT(dAtA []byte) (int, error)

func (*AptBuildConfig) MarshalVT added in v0.52.0

func (m *AptBuildConfig) MarshalVT() (dAtA []byte, err error)

func (*AptBuildConfig) ProtoMessage added in v0.52.0

func (*AptBuildConfig) ProtoMessage()

func (*AptBuildConfig) Reset added in v0.52.0

func (x *AptBuildConfig) Reset()

func (*AptBuildConfig) SizeVT added in v0.52.0

func (m *AptBuildConfig) SizeVT() (n int)

func (*AptBuildConfig) String added in v0.52.0

func (x *AptBuildConfig) String() string

func (*AptBuildConfig) UnmarshalJSON added in v0.52.0

func (x *AptBuildConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AptBuildConfig from JSON.

func (*AptBuildConfig) UnmarshalProtoJSON added in v0.52.0

func (x *AptBuildConfig) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AptBuildConfig message from JSON.

func (*AptBuildConfig) UnmarshalVT added in v0.52.0

func (m *AptBuildConfig) UnmarshalVT(dAtA []byte) error

type AptBuildConfig_EnvEntry added in v0.52.0

type AptBuildConfig_EnvEntry struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*AptBuildConfig_EnvEntry) GetKey added in v0.52.0

func (x *AptBuildConfig_EnvEntry) GetKey() string

func (*AptBuildConfig_EnvEntry) GetValue added in v0.52.0

func (x *AptBuildConfig_EnvEntry) GetValue() string

func (*AptBuildConfig_EnvEntry) MarshalJSON added in v0.52.0

func (x *AptBuildConfig_EnvEntry) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AptBuildConfig_EnvEntry to JSON.

func (*AptBuildConfig_EnvEntry) MarshalProtoJSON added in v0.52.0

func (x *AptBuildConfig_EnvEntry) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AptBuildConfig_EnvEntry message to JSON.

func (*AptBuildConfig_EnvEntry) MarshalProtoText added in v0.52.0

func (x *AptBuildConfig_EnvEntry) MarshalProtoText() string

func (*AptBuildConfig_EnvEntry) ProtoMessage added in v0.52.0

func (*AptBuildConfig_EnvEntry) ProtoMessage()

func (*AptBuildConfig_EnvEntry) Reset added in v0.52.0

func (x *AptBuildConfig_EnvEntry) Reset()

func (*AptBuildConfig_EnvEntry) String added in v0.52.0

func (x *AptBuildConfig_EnvEntry) String() string

func (*AptBuildConfig_EnvEntry) UnmarshalJSON added in v0.52.0

func (x *AptBuildConfig_EnvEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AptBuildConfig_EnvEntry from JSON.

func (*AptBuildConfig_EnvEntry) UnmarshalProtoJSON added in v0.52.0

func (x *AptBuildConfig_EnvEntry) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AptBuildConfig_EnvEntry message from JSON.

type AptBuildSpec added in v0.52.0

type AptBuildSpec struct {

	// SourcePackage is the Debian source package name, e.g. "busybox".
	SourcePackage string `protobuf:"bytes,1,opt,name=source_package,json=sourcePackage,proto3" json:"sourcePackage,omitempty"`
	// SourceRef points at the source tree used for builds.
	SourceRef *bucket.ObjectRef `protobuf:"bytes,2,opt,name=source_ref,json=sourceRef,proto3" json:"sourceRef,omitempty"`
	// BuildConfig contains build-time configuration for the Forge target.
	BuildConfig *AptBuildConfig `protobuf:"bytes,3,opt,name=build_config,json=buildConfig,proto3" json:"buildConfig,omitempty"`
	// Architectures are the Debian architectures to build from this spec.
	Architectures []string `protobuf:"bytes,4,rep,name=architectures,proto3" json:"architectures,omitempty"`
	// BuildDeps are source packages that must build before this spec.
	BuildDeps []string `protobuf:"bytes,5,rep,name=build_deps,json=buildDeps,proto3" json:"buildDeps,omitempty"`
	// contains filtered or unexported fields
}

AptBuildSpec stores the build recipe for an apt source package.

func (*AptBuildSpec) CloneMessageVT added in v0.52.0

func (m *AptBuildSpec) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*AptBuildSpec) CloneVT added in v0.52.0

func (m *AptBuildSpec) CloneVT() *AptBuildSpec

func (*AptBuildSpec) EqualMessageVT added in v0.52.0

func (this *AptBuildSpec) EqualMessageVT(thatMsg any) bool

func (*AptBuildSpec) EqualVT added in v0.52.0

func (this *AptBuildSpec) EqualVT(that *AptBuildSpec) bool

func (*AptBuildSpec) GetArchitectures added in v0.52.0

func (x *AptBuildSpec) GetArchitectures() []string

func (*AptBuildSpec) GetBlockTypeId added in v0.52.0

func (s *AptBuildSpec) GetBlockTypeId() string

GetBlockTypeId returns the block type identifier.

func (*AptBuildSpec) GetBuildConfig added in v0.52.0

func (x *AptBuildSpec) GetBuildConfig() *AptBuildConfig

func (*AptBuildSpec) GetBuildDeps added in v0.52.0

func (x *AptBuildSpec) GetBuildDeps() []string

func (*AptBuildSpec) GetSourcePackage added in v0.52.0

func (x *AptBuildSpec) GetSourcePackage() string

func (*AptBuildSpec) GetSourceRef added in v0.52.0

func (x *AptBuildSpec) GetSourceRef() *bucket.ObjectRef

func (*AptBuildSpec) MarshalBlock added in v0.52.0

func (s *AptBuildSpec) MarshalBlock() ([]byte, error)

MarshalBlock marshals the block to binary.

func (*AptBuildSpec) MarshalJSON added in v0.52.0

func (x *AptBuildSpec) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AptBuildSpec to JSON.

func (*AptBuildSpec) MarshalProtoJSON added in v0.52.0

func (x *AptBuildSpec) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AptBuildSpec message to JSON.

func (*AptBuildSpec) MarshalProtoText added in v0.52.0

func (x *AptBuildSpec) MarshalProtoText() string

func (*AptBuildSpec) MarshalToSizedBufferVT added in v0.52.0

func (m *AptBuildSpec) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AptBuildSpec) MarshalToVT added in v0.52.0

func (m *AptBuildSpec) MarshalToVT(dAtA []byte) (int, error)

func (*AptBuildSpec) MarshalVT added in v0.52.0

func (m *AptBuildSpec) MarshalVT() (dAtA []byte, err error)

func (*AptBuildSpec) ProtoMessage added in v0.52.0

func (*AptBuildSpec) ProtoMessage()

func (*AptBuildSpec) Reset added in v0.52.0

func (x *AptBuildSpec) Reset()

func (*AptBuildSpec) SizeVT added in v0.52.0

func (m *AptBuildSpec) SizeVT() (n int)

func (*AptBuildSpec) String added in v0.52.0

func (x *AptBuildSpec) String() string

func (*AptBuildSpec) UnmarshalBlock added in v0.52.0

func (s *AptBuildSpec) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the block from binary.

func (*AptBuildSpec) UnmarshalJSON added in v0.52.0

func (x *AptBuildSpec) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AptBuildSpec from JSON.

func (*AptBuildSpec) UnmarshalProtoJSON added in v0.52.0

func (x *AptBuildSpec) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AptBuildSpec message from JSON.

func (*AptBuildSpec) UnmarshalVT added in v0.52.0

func (m *AptBuildSpec) UnmarshalVT(dAtA []byte) error

func (*AptBuildSpec) Validate added in v0.52.0

func (s *AptBuildSpec) Validate() error

Validate performs cursory checks on the AptBuildSpec.

type AptPackage

type AptPackage struct {

	// State is the package publication lifecycle state.
	State AptPackageState `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"`
	// Name is the binary package name, e.g. "busybox".
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Version is the Debian package version.
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// Architecture is the Debian architecture, e.g. "i386".
	Architecture string `protobuf:"bytes,4,opt,name=architecture,proto3" json:"architecture,omitempty"`
	// Depends is the parsed Depends control field.
	Depends []string `protobuf:"bytes,5,rep,name=depends,proto3" json:"depends,omitempty"`
	// Provides is the parsed Provides control field.
	Provides []string `protobuf:"bytes,6,rep,name=provides,proto3" json:"provides,omitempty"`
	// Conflicts is the parsed Conflicts control field.
	Conflicts []string `protobuf:"bytes,7,rep,name=conflicts,proto3" json:"conflicts,omitempty"`
	// Description is the package description from the control file.
	Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	// Size is the .deb payload size in bytes.
	Size uint64 `protobuf:"varint,9,opt,name=size,proto3" json:"size,omitempty"`
	// Checksums are the recorded .deb payload digests.
	Checksums []*AptPackageChecksum `protobuf:"bytes,10,rep,name=checksums,proto3" json:"checksums,omitempty"`
	// DebRef points at the stored .deb payload block.
	DebRef *block.BlockRef `protobuf:"bytes,11,opt,name=deb_ref,json=debRef,proto3" json:"debRef,omitempty"`
	// contains filtered or unexported fields
}

AptPackage stores apt package metadata and the .deb payload reference.

func CompleteAptPackageImport added in v0.52.0

func CompleteAptPackageImport(pkg *AptPackage, debRef *block.BlockRef) (*AptPackage, error)

CompleteAptPackageImport attaches a stored .deb ref and transitions to BUILT.

func ImportDebPackage added in v0.52.0

func ImportDebPackage(
	ctx context.Context,
	ws world.WorldState,
	repositoryKey string,
	packageKey string,
	deb []byte,
) (*AptPackage, *block.BlockRef, error)

ImportDebPackage stores package data and creates or completes an AptPackage.

func ParseDebPackage added in v0.52.0

func ParseDebPackage(data []byte) (*AptPackage, error)

ParseDebPackage parses apt package metadata from Debian binary package data.

func ParseDebPackageFile added in v0.52.0

func ParseDebPackageFile(debPath string) (*AptPackage, error)

ParseDebPackageFile parses apt package metadata from a local .deb file.

func ParseDebPackageReader added in v0.52.0

func ParseDebPackageReader(r io.ReaderAt, size int64) (*AptPackage, error)

ParseDebPackageReader parses apt package metadata from a Debian binary package.

func (*AptPackage) CloneMessageVT

func (m *AptPackage) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*AptPackage) CloneVT

func (m *AptPackage) CloneVT() *AptPackage

func (*AptPackage) EqualMessageVT

func (this *AptPackage) EqualMessageVT(thatMsg any) bool

func (*AptPackage) EqualVT

func (this *AptPackage) EqualVT(that *AptPackage) bool

func (*AptPackage) GetArchitecture

func (x *AptPackage) GetArchitecture() string

func (*AptPackage) GetBlockTypeId

func (p *AptPackage) GetBlockTypeId() string

GetBlockTypeId returns the block type identifier.

func (*AptPackage) GetChecksums

func (x *AptPackage) GetChecksums() []*AptPackageChecksum

func (*AptPackage) GetConflicts

func (x *AptPackage) GetConflicts() []string

func (*AptPackage) GetDebRef

func (x *AptPackage) GetDebRef() *block.BlockRef

func (*AptPackage) GetDepends

func (x *AptPackage) GetDepends() []string

func (*AptPackage) GetDescription

func (x *AptPackage) GetDescription() string

func (*AptPackage) GetName

func (x *AptPackage) GetName() string

func (*AptPackage) GetProvides

func (x *AptPackage) GetProvides() []string

func (*AptPackage) GetSize

func (x *AptPackage) GetSize() uint64

func (*AptPackage) GetState

func (x *AptPackage) GetState() AptPackageState

func (*AptPackage) GetVersion

func (x *AptPackage) GetVersion() string

func (*AptPackage) MarshalBlock

func (p *AptPackage) MarshalBlock() ([]byte, error)

MarshalBlock marshals the block to binary.

func (*AptPackage) MarshalJSON

func (x *AptPackage) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AptPackage to JSON.

func (*AptPackage) MarshalProtoJSON

func (x *AptPackage) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AptPackage message to JSON.

func (*AptPackage) MarshalProtoText

func (x *AptPackage) MarshalProtoText() string

func (*AptPackage) MarshalToSizedBufferVT

func (m *AptPackage) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AptPackage) MarshalToVT

func (m *AptPackage) MarshalToVT(dAtA []byte) (int, error)

func (*AptPackage) MarshalVT

func (m *AptPackage) MarshalVT() (dAtA []byte, err error)

func (*AptPackage) ProtoMessage

func (*AptPackage) ProtoMessage()

func (*AptPackage) Reset

func (x *AptPackage) Reset()

func (*AptPackage) SizeVT

func (m *AptPackage) SizeVT() (n int)

func (*AptPackage) String

func (x *AptPackage) String() string

func (*AptPackage) TransitionState added in v0.52.0

func (p *AptPackage) TransitionState(next AptPackageState) error

TransitionState transitions the package to the next legal state.

func (*AptPackage) UnmarshalBlock

func (p *AptPackage) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the block from binary.

func (*AptPackage) UnmarshalJSON

func (x *AptPackage) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AptPackage from JSON.

func (*AptPackage) UnmarshalProtoJSON

func (x *AptPackage) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AptPackage message from JSON.

func (*AptPackage) UnmarshalVT

func (m *AptPackage) UnmarshalVT(dAtA []byte) error

func (*AptPackage) Validate

func (p *AptPackage) Validate() error

Validate performs cursory checks on the AptPackage.

type AptPackageChecksum

type AptPackageChecksum struct {

	// Algorithm is the checksum algorithm name, e.g. "sha256".
	Algorithm string `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"`
	// Hex is the lowercase hex digest.
	Hex string `protobuf:"bytes,2,opt,name=hex,proto3" json:"hex,omitempty"`
	// contains filtered or unexported fields
}

AptPackageChecksum records a digest for the .deb payload.

func AptPackageChecksums added in v0.52.0

func AptPackageChecksums(data []byte) []*AptPackageChecksum

AptPackageChecksums returns checksum records for package payload bytes.

func (*AptPackageChecksum) CloneMessageVT

func (m *AptPackageChecksum) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*AptPackageChecksum) CloneVT

func (m *AptPackageChecksum) CloneVT() *AptPackageChecksum

func (*AptPackageChecksum) EqualMessageVT

func (this *AptPackageChecksum) EqualMessageVT(thatMsg any) bool

func (*AptPackageChecksum) EqualVT

func (this *AptPackageChecksum) EqualVT(that *AptPackageChecksum) bool

func (*AptPackageChecksum) GetAlgorithm

func (x *AptPackageChecksum) GetAlgorithm() string

func (*AptPackageChecksum) GetHex

func (x *AptPackageChecksum) GetHex() string

func (*AptPackageChecksum) MarshalJSON

func (x *AptPackageChecksum) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AptPackageChecksum to JSON.

func (*AptPackageChecksum) MarshalProtoJSON

func (x *AptPackageChecksum) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AptPackageChecksum message to JSON.

func (*AptPackageChecksum) MarshalProtoText

func (x *AptPackageChecksum) MarshalProtoText() string

func (*AptPackageChecksum) MarshalToSizedBufferVT

func (m *AptPackageChecksum) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AptPackageChecksum) MarshalToVT

func (m *AptPackageChecksum) MarshalToVT(dAtA []byte) (int, error)

func (*AptPackageChecksum) MarshalVT

func (m *AptPackageChecksum) MarshalVT() (dAtA []byte, err error)

func (*AptPackageChecksum) ProtoMessage

func (*AptPackageChecksum) ProtoMessage()

func (*AptPackageChecksum) Reset

func (x *AptPackageChecksum) Reset()

func (*AptPackageChecksum) SizeVT

func (m *AptPackageChecksum) SizeVT() (n int)

func (*AptPackageChecksum) String

func (x *AptPackageChecksum) String() string

func (*AptPackageChecksum) UnmarshalJSON

func (x *AptPackageChecksum) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AptPackageChecksum from JSON.

func (*AptPackageChecksum) UnmarshalProtoJSON

func (x *AptPackageChecksum) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AptPackageChecksum message from JSON.

func (*AptPackageChecksum) UnmarshalVT

func (m *AptPackageChecksum) UnmarshalVT(dAtA []byte) error

type AptPackageState

type AptPackageState int32

AptPackageState is the publication lifecycle state of an AptPackage.

const (
	// AptPackageState_IMPORTING means the package is being ingested.
	AptPackageState_AptPackageState_IMPORTING AptPackageState = 0
	// AptPackageState_BUILT means the package artifact exists but is not indexed.
	AptPackageState_AptPackageState_BUILT AptPackageState = 1
	// AptPackageState_PUBLISHED means the package is included in the current index.
	AptPackageState_AptPackageState_PUBLISHED AptPackageState = 2
	// AptPackageState_SUPERSEDED means a newer package replaced this package.
	AptPackageState_AptPackageState_SUPERSEDED AptPackageState = 3
)

func (AptPackageState) CanTransitionTo added in v0.52.0

func (s AptPackageState) CanTransitionTo(next AptPackageState) bool

CanTransitionTo returns true if the package can move to the next state.

func (AptPackageState) EnsureTransitionTo added in v0.52.0

func (s AptPackageState) EnsureTransitionTo(next AptPackageState) error

EnsureTransitionTo returns an error if the package transition is illegal.

func (AptPackageState) Enum

func (x AptPackageState) Enum() *AptPackageState

func (AptPackageState) MarshalJSON

func (x AptPackageState) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AptPackageState to JSON.

func (AptPackageState) MarshalProtoJSON

func (x AptPackageState) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AptPackageState to JSON.

func (AptPackageState) MarshalProtoText

func (x AptPackageState) MarshalProtoText() string

func (AptPackageState) MarshalText

func (x AptPackageState) MarshalText() ([]byte, error)

MarshalText marshals the AptPackageState to text.

func (AptPackageState) String

func (x AptPackageState) String() string

func (*AptPackageState) UnmarshalJSON

func (x *AptPackageState) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AptPackageState from JSON.

func (*AptPackageState) UnmarshalProtoJSON

func (x *AptPackageState) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AptPackageState from JSON.

func (*AptPackageState) UnmarshalText

func (x *AptPackageState) UnmarshalText(b []byte) error

UnmarshalText unmarshals the AptPackageState from text.

func (AptPackageState) Validate added in v0.52.0

func (s AptPackageState) Validate() error

Validate checks the package state is known.

type AptPublishPackageOp added in v0.52.0

type AptPublishPackageOp struct {

	// PackageKey is the AptPackage object key.
	PackageKey string `protobuf:"bytes,1,opt,name=package_key,json=packageKey,proto3" json:"packageKey,omitempty"`
	// contains filtered or unexported fields
}

AptPublishPackageOp publishes a built AptPackage into the repository index.

func NewAptPublishPackageOp added in v0.52.0

func NewAptPublishPackageOp(packageKey string) *AptPublishPackageOp

NewAptPublishPackageOp constructs a new AptPublishPackageOp.

func (*AptPublishPackageOp) ApplyWorldObjectOp added in v0.52.0

func (o *AptPublishPackageOp) ApplyWorldObjectOp(
	ctx context.Context,
	le *logrus.Entry,
	os world.ObjectState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldObjectOp applies the operation to a world object handle.

func (*AptPublishPackageOp) ApplyWorldOp added in v0.52.0

func (o *AptPublishPackageOp) ApplyWorldOp(
	ctx context.Context,
	le *logrus.Entry,
	ws world.WorldState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldOp applies the operation as a world operation.

func (*AptPublishPackageOp) CloneMessageVT added in v0.52.0

func (*AptPublishPackageOp) CloneVT added in v0.52.0

func (*AptPublishPackageOp) EqualMessageVT added in v0.52.0

func (this *AptPublishPackageOp) EqualMessageVT(thatMsg any) bool

func (*AptPublishPackageOp) EqualVT added in v0.52.0

func (this *AptPublishPackageOp) EqualVT(that *AptPublishPackageOp) bool

func (*AptPublishPackageOp) GetOperationTypeId added in v0.52.0

func (o *AptPublishPackageOp) GetOperationTypeId() string

GetOperationTypeId returns the operation type identifier.

func (*AptPublishPackageOp) GetPackageKey added in v0.52.0

func (x *AptPublishPackageOp) GetPackageKey() string

func (*AptPublishPackageOp) MarshalBlock added in v0.52.0

func (o *AptPublishPackageOp) MarshalBlock() ([]byte, error)

MarshalBlock marshals the block to binary.

func (*AptPublishPackageOp) MarshalJSON added in v0.52.0

func (x *AptPublishPackageOp) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AptPublishPackageOp to JSON.

func (*AptPublishPackageOp) MarshalProtoJSON added in v0.52.0

func (x *AptPublishPackageOp) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AptPublishPackageOp message to JSON.

func (*AptPublishPackageOp) MarshalProtoText added in v0.52.0

func (x *AptPublishPackageOp) MarshalProtoText() string

func (*AptPublishPackageOp) MarshalToSizedBufferVT added in v0.52.0

func (m *AptPublishPackageOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AptPublishPackageOp) MarshalToVT added in v0.52.0

func (m *AptPublishPackageOp) MarshalToVT(dAtA []byte) (int, error)

func (*AptPublishPackageOp) MarshalVT added in v0.52.0

func (m *AptPublishPackageOp) MarshalVT() (dAtA []byte, err error)

func (*AptPublishPackageOp) ProtoMessage added in v0.52.0

func (*AptPublishPackageOp) ProtoMessage()

func (*AptPublishPackageOp) Reset added in v0.52.0

func (x *AptPublishPackageOp) Reset()

func (*AptPublishPackageOp) SizeVT added in v0.52.0

func (m *AptPublishPackageOp) SizeVT() (n int)

func (*AptPublishPackageOp) String added in v0.52.0

func (x *AptPublishPackageOp) String() string

func (*AptPublishPackageOp) UnmarshalBlock added in v0.52.0

func (o *AptPublishPackageOp) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the block from binary.

func (*AptPublishPackageOp) UnmarshalJSON added in v0.52.0

func (x *AptPublishPackageOp) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AptPublishPackageOp from JSON.

func (*AptPublishPackageOp) UnmarshalProtoJSON added in v0.52.0

func (x *AptPublishPackageOp) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AptPublishPackageOp message from JSON.

func (*AptPublishPackageOp) UnmarshalVT added in v0.52.0

func (m *AptPublishPackageOp) UnmarshalVT(dAtA []byte) error

func (*AptPublishPackageOp) Validate added in v0.52.0

func (o *AptPublishPackageOp) Validate() error

Validate performs cursory checks on the op.

type AptRepository

type AptRepository struct {

	// State is the current repository index lifecycle state.
	State AptRepositoryState `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"`
	// Distribution is the apt distribution name, e.g. "stable".
	Distribution string `protobuf:"bytes,2,opt,name=distribution,proto3" json:"distribution,omitempty"`
	// Components is the apt component list, e.g. ["main"].
	Components []string `protobuf:"bytes,3,rep,name=components,proto3" json:"components,omitempty"`
	// Architectures is the architecture list served by this repository.
	Architectures []string `protobuf:"bytes,4,rep,name=architectures,proto3" json:"architectures,omitempty"`
	// SigningKeyRef points at the standalone Ed25519 GPG signing key block.
	SigningKeyRef *block.BlockRef `protobuf:"bytes,5,opt,name=signing_key_ref,json=signingKeyRef,proto3" json:"signingKeyRef,omitempty"`
	// IndexRef points at the materialized dists/ UnixFS tree.
	IndexRef *bucket.ObjectRef `protobuf:"bytes,6,opt,name=index_ref,json=indexRef,proto3" json:"indexRef,omitempty"`
	// contains filtered or unexported fields
}

AptRepository stores apt repository metadata and index roots.

func (*AptRepository) CloneMessageVT

func (m *AptRepository) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*AptRepository) CloneVT

func (m *AptRepository) CloneVT() *AptRepository

func (*AptRepository) EqualMessageVT

func (this *AptRepository) EqualMessageVT(thatMsg any) bool

func (*AptRepository) EqualVT

func (this *AptRepository) EqualVT(that *AptRepository) bool

func (*AptRepository) GetArchitectures

func (x *AptRepository) GetArchitectures() []string

func (*AptRepository) GetBlockTypeId

func (r *AptRepository) GetBlockTypeId() string

GetBlockTypeId returns the block type identifier.

func (*AptRepository) GetComponents

func (x *AptRepository) GetComponents() []string

func (*AptRepository) GetDistribution

func (x *AptRepository) GetDistribution() string

func (*AptRepository) GetIndexRef

func (x *AptRepository) GetIndexRef() *bucket.ObjectRef

func (*AptRepository) GetSigningKeyRef

func (x *AptRepository) GetSigningKeyRef() *block.BlockRef

func (*AptRepository) GetState

func (x *AptRepository) GetState() AptRepositoryState

func (*AptRepository) MarshalBlock

func (r *AptRepository) MarshalBlock() ([]byte, error)

MarshalBlock marshals the block to binary.

func (*AptRepository) MarshalJSON

func (x *AptRepository) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AptRepository to JSON.

func (*AptRepository) MarshalProtoJSON

func (x *AptRepository) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AptRepository message to JSON.

func (*AptRepository) MarshalProtoText

func (x *AptRepository) MarshalProtoText() string

func (*AptRepository) MarshalToSizedBufferVT

func (m *AptRepository) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AptRepository) MarshalToVT

func (m *AptRepository) MarshalToVT(dAtA []byte) (int, error)

func (*AptRepository) MarshalVT

func (m *AptRepository) MarshalVT() (dAtA []byte, err error)

func (*AptRepository) ProtoMessage

func (*AptRepository) ProtoMessage()

func (*AptRepository) Reset

func (x *AptRepository) Reset()

func (*AptRepository) SizeVT

func (m *AptRepository) SizeVT() (n int)

func (*AptRepository) String

func (x *AptRepository) String() string

func (*AptRepository) TransitionState added in v0.52.0

func (r *AptRepository) TransitionState(next AptRepositoryState) error

TransitionState transitions the repository to the next legal state.

func (*AptRepository) UnmarshalBlock

func (r *AptRepository) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the block from binary.

func (*AptRepository) UnmarshalJSON

func (x *AptRepository) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AptRepository from JSON.

func (*AptRepository) UnmarshalProtoJSON

func (x *AptRepository) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AptRepository message from JSON.

func (*AptRepository) UnmarshalVT

func (m *AptRepository) UnmarshalVT(dAtA []byte) error

func (*AptRepository) Validate

func (r *AptRepository) Validate() error

Validate performs cursory checks on the AptRepository.

type AptRepositoryState

type AptRepositoryState int32

AptRepositoryState is the index lifecycle state of an AptRepository.

const (
	// AptRepositoryState_EMPTY means the repository has no generated index.
	AptRepositoryState_AptRepositoryState_EMPTY AptRepositoryState = 0
	// AptRepositoryState_INDEXING means index regeneration is in progress.
	AptRepositoryState_AptRepositoryState_INDEXING AptRepositoryState = 1
	// AptRepositoryState_READY means the repository index is generated and usable.
	AptRepositoryState_AptRepositoryState_READY AptRepositoryState = 2
	// AptRepositoryState_ERROR means the last index regeneration failed.
	AptRepositoryState_AptRepositoryState_ERROR AptRepositoryState = 3
)

func (AptRepositoryState) CanTransitionTo added in v0.52.0

func (s AptRepositoryState) CanTransitionTo(next AptRepositoryState) bool

CanTransitionTo returns true if the repository can move to the next state.

func (AptRepositoryState) EnsureTransitionTo added in v0.52.0

func (s AptRepositoryState) EnsureTransitionTo(next AptRepositoryState) error

EnsureTransitionTo returns an error if the repository transition is illegal.

func (AptRepositoryState) Enum

func (AptRepositoryState) MarshalJSON

func (x AptRepositoryState) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AptRepositoryState to JSON.

func (AptRepositoryState) MarshalProtoJSON

func (x AptRepositoryState) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AptRepositoryState to JSON.

func (AptRepositoryState) MarshalProtoText

func (x AptRepositoryState) MarshalProtoText() string

func (AptRepositoryState) MarshalText

func (x AptRepositoryState) MarshalText() ([]byte, error)

MarshalText marshals the AptRepositoryState to text.

func (AptRepositoryState) String

func (x AptRepositoryState) String() string

func (*AptRepositoryState) UnmarshalJSON

func (x *AptRepositoryState) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AptRepositoryState from JSON.

func (*AptRepositoryState) UnmarshalProtoJSON

func (x *AptRepositoryState) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AptRepositoryState from JSON.

func (*AptRepositoryState) UnmarshalText

func (x *AptRepositoryState) UnmarshalText(b []byte) error

UnmarshalText unmarshals the AptRepositoryState from text.

func (AptRepositoryState) Validate added in v0.52.0

func (s AptRepositoryState) Validate() error

Validate checks the repository state is known.

type AptSupersedePackageOp added in v0.52.0

type AptSupersedePackageOp struct {

	// PackageKey is the AptPackage object key.
	PackageKey string `protobuf:"bytes,1,opt,name=package_key,json=packageKey,proto3" json:"packageKey,omitempty"`
	// contains filtered or unexported fields
}

AptSupersedePackageOp marks a published AptPackage as superseded.

func NewAptSupersedePackageOp added in v0.52.0

func NewAptSupersedePackageOp(packageKey string) *AptSupersedePackageOp

NewAptSupersedePackageOp constructs a new AptSupersedePackageOp.

func (*AptSupersedePackageOp) ApplyWorldObjectOp added in v0.52.0

func (o *AptSupersedePackageOp) ApplyWorldObjectOp(
	ctx context.Context,
	le *logrus.Entry,
	os world.ObjectState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldObjectOp applies the operation to a world object handle.

func (*AptSupersedePackageOp) ApplyWorldOp added in v0.52.0

func (o *AptSupersedePackageOp) ApplyWorldOp(
	ctx context.Context,
	le *logrus.Entry,
	ws world.WorldState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldOp applies the operation as a world operation.

func (*AptSupersedePackageOp) CloneMessageVT added in v0.52.0

func (*AptSupersedePackageOp) CloneVT added in v0.52.0

func (*AptSupersedePackageOp) EqualMessageVT added in v0.52.0

func (this *AptSupersedePackageOp) EqualMessageVT(thatMsg any) bool

func (*AptSupersedePackageOp) EqualVT added in v0.52.0

func (this *AptSupersedePackageOp) EqualVT(that *AptSupersedePackageOp) bool

func (*AptSupersedePackageOp) GetOperationTypeId added in v0.52.0

func (o *AptSupersedePackageOp) GetOperationTypeId() string

GetOperationTypeId returns the operation type identifier.

func (*AptSupersedePackageOp) GetPackageKey added in v0.52.0

func (x *AptSupersedePackageOp) GetPackageKey() string

func (*AptSupersedePackageOp) MarshalBlock added in v0.52.0

func (o *AptSupersedePackageOp) MarshalBlock() ([]byte, error)

MarshalBlock marshals the block to binary.

func (*AptSupersedePackageOp) MarshalJSON added in v0.52.0

func (x *AptSupersedePackageOp) MarshalJSON() ([]byte, error)

MarshalJSON marshals the AptSupersedePackageOp to JSON.

func (*AptSupersedePackageOp) MarshalProtoJSON added in v0.52.0

func (x *AptSupersedePackageOp) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the AptSupersedePackageOp message to JSON.

func (*AptSupersedePackageOp) MarshalProtoText added in v0.52.0

func (x *AptSupersedePackageOp) MarshalProtoText() string

func (*AptSupersedePackageOp) MarshalToSizedBufferVT added in v0.52.0

func (m *AptSupersedePackageOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AptSupersedePackageOp) MarshalToVT added in v0.52.0

func (m *AptSupersedePackageOp) MarshalToVT(dAtA []byte) (int, error)

func (*AptSupersedePackageOp) MarshalVT added in v0.52.0

func (m *AptSupersedePackageOp) MarshalVT() (dAtA []byte, err error)

func (*AptSupersedePackageOp) ProtoMessage added in v0.52.0

func (*AptSupersedePackageOp) ProtoMessage()

func (*AptSupersedePackageOp) Reset added in v0.52.0

func (x *AptSupersedePackageOp) Reset()

func (*AptSupersedePackageOp) SizeVT added in v0.52.0

func (m *AptSupersedePackageOp) SizeVT() (n int)

func (*AptSupersedePackageOp) String added in v0.52.0

func (x *AptSupersedePackageOp) String() string

func (*AptSupersedePackageOp) UnmarshalBlock added in v0.52.0

func (o *AptSupersedePackageOp) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the block from binary.

func (*AptSupersedePackageOp) UnmarshalJSON added in v0.52.0

func (x *AptSupersedePackageOp) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the AptSupersedePackageOp from JSON.

func (*AptSupersedePackageOp) UnmarshalProtoJSON added in v0.52.0

func (x *AptSupersedePackageOp) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the AptSupersedePackageOp message from JSON.

func (*AptSupersedePackageOp) UnmarshalVT added in v0.52.0

func (m *AptSupersedePackageOp) UnmarshalVT(dAtA []byte) error

func (*AptSupersedePackageOp) Validate added in v0.52.0

func (o *AptSupersedePackageOp) Validate() error

Validate performs cursory checks on the op.

type CreateAptRepositoryOp added in v0.52.0

type CreateAptRepositoryOp struct {

	// ObjectKey is the key to create the repository at.
	ObjectKey string `protobuf:"bytes,1,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
	// Repository carries the metadata for the new AptRepository.
	Repository *AptRepository `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"`
	// contains filtered or unexported fields
}

CreateAptRepositoryOp creates a new AptRepository world object.

func NewCreateAptRepositoryOp added in v0.52.0

func NewCreateAptRepositoryOp(objectKey string, repository *AptRepository) *CreateAptRepositoryOp

NewCreateAptRepositoryOp constructs a new CreateAptRepositoryOp.

func (*CreateAptRepositoryOp) ApplyWorldObjectOp added in v0.52.0

func (o *CreateAptRepositoryOp) ApplyWorldObjectOp(
	ctx context.Context,
	le *logrus.Entry,
	os world.ObjectState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldObjectOp applies the operation to a world object handle.

func (*CreateAptRepositoryOp) ApplyWorldOp added in v0.52.0

func (o *CreateAptRepositoryOp) ApplyWorldOp(
	ctx context.Context,
	le *logrus.Entry,
	ws world.WorldState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldOp applies the operation as a world operation.

func (*CreateAptRepositoryOp) CloneMessageVT added in v0.52.0

func (*CreateAptRepositoryOp) CloneVT added in v0.52.0

func (*CreateAptRepositoryOp) EqualMessageVT added in v0.52.0

func (this *CreateAptRepositoryOp) EqualMessageVT(thatMsg any) bool

func (*CreateAptRepositoryOp) EqualVT added in v0.52.0

func (this *CreateAptRepositoryOp) EqualVT(that *CreateAptRepositoryOp) bool

func (*CreateAptRepositoryOp) GetObjectKey added in v0.52.0

func (x *CreateAptRepositoryOp) GetObjectKey() string

func (*CreateAptRepositoryOp) GetOperationTypeId added in v0.52.0

func (o *CreateAptRepositoryOp) GetOperationTypeId() string

GetOperationTypeId returns the operation type identifier.

func (*CreateAptRepositoryOp) GetRepository added in v0.52.0

func (x *CreateAptRepositoryOp) GetRepository() *AptRepository

func (*CreateAptRepositoryOp) MarshalBlock added in v0.52.0

func (o *CreateAptRepositoryOp) MarshalBlock() ([]byte, error)

MarshalBlock marshals the block to binary.

func (*CreateAptRepositoryOp) MarshalJSON added in v0.52.0

func (x *CreateAptRepositoryOp) MarshalJSON() ([]byte, error)

MarshalJSON marshals the CreateAptRepositoryOp to JSON.

func (*CreateAptRepositoryOp) MarshalProtoJSON added in v0.52.0

func (x *CreateAptRepositoryOp) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the CreateAptRepositoryOp message to JSON.

func (*CreateAptRepositoryOp) MarshalProtoText added in v0.52.0

func (x *CreateAptRepositoryOp) MarshalProtoText() string

func (*CreateAptRepositoryOp) MarshalToSizedBufferVT added in v0.52.0

func (m *CreateAptRepositoryOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CreateAptRepositoryOp) MarshalToVT added in v0.52.0

func (m *CreateAptRepositoryOp) MarshalToVT(dAtA []byte) (int, error)

func (*CreateAptRepositoryOp) MarshalVT added in v0.52.0

func (m *CreateAptRepositoryOp) MarshalVT() (dAtA []byte, err error)

func (*CreateAptRepositoryOp) ProtoMessage added in v0.52.0

func (*CreateAptRepositoryOp) ProtoMessage()

func (*CreateAptRepositoryOp) Reset added in v0.52.0

func (x *CreateAptRepositoryOp) Reset()

func (*CreateAptRepositoryOp) SizeVT added in v0.52.0

func (m *CreateAptRepositoryOp) SizeVT() (n int)

func (*CreateAptRepositoryOp) String added in v0.52.0

func (x *CreateAptRepositoryOp) String() string

func (*CreateAptRepositoryOp) UnmarshalBlock added in v0.52.0

func (o *CreateAptRepositoryOp) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the block from binary.

func (*CreateAptRepositoryOp) UnmarshalJSON added in v0.52.0

func (x *CreateAptRepositoryOp) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the CreateAptRepositoryOp from JSON.

func (*CreateAptRepositoryOp) UnmarshalProtoJSON added in v0.52.0

func (x *CreateAptRepositoryOp) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the CreateAptRepositoryOp message from JSON.

func (*CreateAptRepositoryOp) UnmarshalVT added in v0.52.0

func (m *CreateAptRepositoryOp) UnmarshalVT(dAtA []byte) error

func (*CreateAptRepositoryOp) Validate added in v0.52.0

func (o *CreateAptRepositoryOp) Validate() error

Validate performs cursory checks on the op.

type DebPackageBlockWriter added in v0.52.0

type DebPackageBlockWriter interface {
	PutBlock(ctx context.Context, data []byte, opts *block.PutOpts) (*block.BlockRef, bool, error)
}

DebPackageBlockWriter stores raw .deb package bytes.

Jump to

Keyboard shortcuts

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