Documentation
¶
Overview ¶
Package s4wave_apt implements apt repository block types and world operations.
Index ¶
- Constants
- Variables
- func AptPackagePoolFilename(pkg *AptPackage) (string, error)
- func CompressPackagesFileGzip(data []byte) ([]byte, error)
- func GeneratePackagesFile(packages []*AptPackage) ([]byte, error)
- func GeneratePackagesGzipFile(packages []*AptPackage) ([]byte, error)
- func GenerateReleaseFile(repo *AptRepository, files map[string][]byte, date time.Time) ([]byte, error)
- func LookupAddAptBuildSpecOp(ctx context.Context, operationTypeID string) (world.Operation, error)
- func LookupAddAptPackageOp(ctx context.Context, operationTypeID string) (world.Operation, error)
- func LookupAptOp(ctx context.Context, operationTypeID string) (world.Operation, error)
- func LookupAptPublishPackageOp(ctx context.Context, operationTypeID string) (world.Operation, error)
- func LookupAptSupersedePackageOp(ctx context.Context, operationTypeID string) (world.Operation, error)
- func LookupCreateAptRepositoryOp(ctx context.Context, operationTypeID string) (world.Operation, error)
- func NewAddAptBuildSpecOpBlock() block.Block
- func NewAddAptPackageOpBlock() block.Block
- func NewAptBuildSpecBlock() block.Block
- func NewAptPackageBlock() block.Block
- func NewAptPublishPackageOpBlock() block.Block
- func NewAptRepositoryBlock() block.Block
- func NewAptSupersedePackageOpBlock() block.Block
- func NewCreateAptRepositoryOpBlock() block.Block
- func StoreDebPackageBlock(ctx context.Context, store DebPackageBlockWriter, deb []byte) (*block.BlockRef, error)
- type AddAptBuildSpecOp
- func (o *AddAptBuildSpecOp) ApplyWorldObjectOp(ctx context.Context, le *logrus.Entry, os world.ObjectState, sender peer.ID) (sysErr bool, err error)
- func (o *AddAptBuildSpecOp) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (sysErr bool, err error)
- func (m *AddAptBuildSpecOp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AddAptBuildSpecOp) CloneVT() *AddAptBuildSpecOp
- func (this *AddAptBuildSpecOp) EqualMessageVT(thatMsg any) bool
- func (this *AddAptBuildSpecOp) EqualVT(that *AddAptBuildSpecOp) bool
- func (x *AddAptBuildSpecOp) GetBuildSpec() *AptBuildSpec
- func (x *AddAptBuildSpecOp) GetBuildSpecKey() string
- func (o *AddAptBuildSpecOp) GetOperationTypeId() string
- func (x *AddAptBuildSpecOp) GetRepositoryKey() string
- func (o *AddAptBuildSpecOp) MarshalBlock() ([]byte, error)
- func (x *AddAptBuildSpecOp) MarshalJSON() ([]byte, error)
- func (x *AddAptBuildSpecOp) MarshalProtoJSON(s *json.MarshalState)
- func (x *AddAptBuildSpecOp) MarshalProtoText() string
- func (m *AddAptBuildSpecOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AddAptBuildSpecOp) MarshalToVT(dAtA []byte) (int, error)
- func (m *AddAptBuildSpecOp) MarshalVT() (dAtA []byte, err error)
- func (*AddAptBuildSpecOp) ProtoMessage()
- func (x *AddAptBuildSpecOp) Reset()
- func (m *AddAptBuildSpecOp) SizeVT() (n int)
- func (x *AddAptBuildSpecOp) String() string
- func (o *AddAptBuildSpecOp) UnmarshalBlock(data []byte) error
- func (x *AddAptBuildSpecOp) UnmarshalJSON(b []byte) error
- func (x *AddAptBuildSpecOp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AddAptBuildSpecOp) UnmarshalVT(dAtA []byte) error
- func (o *AddAptBuildSpecOp) Validate() error
- type AddAptPackageOp
- func (o *AddAptPackageOp) ApplyWorldObjectOp(ctx context.Context, le *logrus.Entry, os world.ObjectState, sender peer.ID) (sysErr bool, err error)
- func (o *AddAptPackageOp) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (sysErr bool, err error)
- func (m *AddAptPackageOp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AddAptPackageOp) CloneVT() *AddAptPackageOp
- func (this *AddAptPackageOp) EqualMessageVT(thatMsg any) bool
- func (this *AddAptPackageOp) EqualVT(that *AddAptPackageOp) bool
- func (x *AddAptPackageOp) GetAptPackage() *AptPackage
- func (o *AddAptPackageOp) GetOperationTypeId() string
- func (x *AddAptPackageOp) GetPackageKey() string
- func (x *AddAptPackageOp) GetRepositoryKey() string
- func (o *AddAptPackageOp) MarshalBlock() ([]byte, error)
- func (x *AddAptPackageOp) MarshalJSON() ([]byte, error)
- func (x *AddAptPackageOp) MarshalProtoJSON(s *json.MarshalState)
- func (x *AddAptPackageOp) MarshalProtoText() string
- func (m *AddAptPackageOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AddAptPackageOp) MarshalToVT(dAtA []byte) (int, error)
- func (m *AddAptPackageOp) MarshalVT() (dAtA []byte, err error)
- func (*AddAptPackageOp) ProtoMessage()
- func (x *AddAptPackageOp) Reset()
- func (m *AddAptPackageOp) SizeVT() (n int)
- func (x *AddAptPackageOp) String() string
- func (o *AddAptPackageOp) UnmarshalBlock(data []byte) error
- func (x *AddAptPackageOp) UnmarshalJSON(b []byte) error
- func (x *AddAptPackageOp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AddAptPackageOp) UnmarshalVT(dAtA []byte) error
- func (o *AddAptPackageOp) Validate() error
- type AptBuildConfig
- func (m *AptBuildConfig) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AptBuildConfig) CloneVT() *AptBuildConfig
- func (this *AptBuildConfig) EqualMessageVT(thatMsg any) bool
- func (this *AptBuildConfig) EqualVT(that *AptBuildConfig) bool
- func (x *AptBuildConfig) GetCrossCompilePrefix() string
- func (x *AptBuildConfig) GetEnv() map[string]string
- func (x *AptBuildConfig) MarshalJSON() ([]byte, error)
- func (x *AptBuildConfig) MarshalProtoJSON(s *json.MarshalState)
- func (x *AptBuildConfig) MarshalProtoText() string
- func (m *AptBuildConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AptBuildConfig) MarshalToVT(dAtA []byte) (int, error)
- func (m *AptBuildConfig) MarshalVT() (dAtA []byte, err error)
- func (*AptBuildConfig) ProtoMessage()
- func (x *AptBuildConfig) Reset()
- func (m *AptBuildConfig) SizeVT() (n int)
- func (x *AptBuildConfig) String() string
- func (x *AptBuildConfig) UnmarshalJSON(b []byte) error
- func (x *AptBuildConfig) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AptBuildConfig) UnmarshalVT(dAtA []byte) error
- type AptBuildConfig_EnvEntry
- func (x *AptBuildConfig_EnvEntry) GetKey() string
- func (x *AptBuildConfig_EnvEntry) GetValue() string
- func (x *AptBuildConfig_EnvEntry) MarshalJSON() ([]byte, error)
- func (x *AptBuildConfig_EnvEntry) MarshalProtoJSON(s *json.MarshalState)
- func (x *AptBuildConfig_EnvEntry) MarshalProtoText() string
- func (*AptBuildConfig_EnvEntry) ProtoMessage()
- func (x *AptBuildConfig_EnvEntry) Reset()
- func (x *AptBuildConfig_EnvEntry) String() string
- func (x *AptBuildConfig_EnvEntry) UnmarshalJSON(b []byte) error
- func (x *AptBuildConfig_EnvEntry) UnmarshalProtoJSON(s *json.UnmarshalState)
- type AptBuildSpec
- func (m *AptBuildSpec) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AptBuildSpec) CloneVT() *AptBuildSpec
- func (this *AptBuildSpec) EqualMessageVT(thatMsg any) bool
- func (this *AptBuildSpec) EqualVT(that *AptBuildSpec) bool
- func (x *AptBuildSpec) GetArchitectures() []string
- func (s *AptBuildSpec) GetBlockTypeId() string
- func (x *AptBuildSpec) GetBuildConfig() *AptBuildConfig
- func (x *AptBuildSpec) GetBuildDeps() []string
- func (x *AptBuildSpec) GetSourcePackage() string
- func (x *AptBuildSpec) GetSourceRef() *bucket.ObjectRef
- func (s *AptBuildSpec) MarshalBlock() ([]byte, error)
- func (x *AptBuildSpec) MarshalJSON() ([]byte, error)
- func (x *AptBuildSpec) MarshalProtoJSON(s *json.MarshalState)
- func (x *AptBuildSpec) MarshalProtoText() string
- func (m *AptBuildSpec) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AptBuildSpec) MarshalToVT(dAtA []byte) (int, error)
- func (m *AptBuildSpec) MarshalVT() (dAtA []byte, err error)
- func (*AptBuildSpec) ProtoMessage()
- func (x *AptBuildSpec) Reset()
- func (m *AptBuildSpec) SizeVT() (n int)
- func (x *AptBuildSpec) String() string
- func (s *AptBuildSpec) UnmarshalBlock(data []byte) error
- func (x *AptBuildSpec) UnmarshalJSON(b []byte) error
- func (x *AptBuildSpec) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AptBuildSpec) UnmarshalVT(dAtA []byte) error
- func (s *AptBuildSpec) Validate() error
- type AptPackage
- func CompleteAptPackageImport(pkg *AptPackage, debRef *block.BlockRef) (*AptPackage, error)
- func ImportDebPackage(ctx context.Context, ws world.WorldState, repositoryKey string, ...) (*AptPackage, *block.BlockRef, error)
- func ParseDebPackage(data []byte) (*AptPackage, error)
- func ParseDebPackageFile(debPath string) (*AptPackage, error)
- func ParseDebPackageReader(r io.ReaderAt, size int64) (*AptPackage, error)
- func (m *AptPackage) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AptPackage) CloneVT() *AptPackage
- func (this *AptPackage) EqualMessageVT(thatMsg any) bool
- func (this *AptPackage) EqualVT(that *AptPackage) bool
- func (x *AptPackage) GetArchitecture() string
- func (p *AptPackage) GetBlockTypeId() string
- func (x *AptPackage) GetChecksums() []*AptPackageChecksum
- func (x *AptPackage) GetConflicts() []string
- func (x *AptPackage) GetDebRef() *block.BlockRef
- func (x *AptPackage) GetDepends() []string
- func (x *AptPackage) GetDescription() string
- func (x *AptPackage) GetName() string
- func (x *AptPackage) GetProvides() []string
- func (x *AptPackage) GetSize() uint64
- func (x *AptPackage) GetState() AptPackageState
- func (x *AptPackage) GetVersion() string
- func (p *AptPackage) MarshalBlock() ([]byte, error)
- func (x *AptPackage) MarshalJSON() ([]byte, error)
- func (x *AptPackage) MarshalProtoJSON(s *json.MarshalState)
- func (x *AptPackage) MarshalProtoText() string
- func (m *AptPackage) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AptPackage) MarshalToVT(dAtA []byte) (int, error)
- func (m *AptPackage) MarshalVT() (dAtA []byte, err error)
- func (*AptPackage) ProtoMessage()
- func (x *AptPackage) Reset()
- func (m *AptPackage) SizeVT() (n int)
- func (x *AptPackage) String() string
- func (p *AptPackage) TransitionState(next AptPackageState) error
- func (p *AptPackage) UnmarshalBlock(data []byte) error
- func (x *AptPackage) UnmarshalJSON(b []byte) error
- func (x *AptPackage) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AptPackage) UnmarshalVT(dAtA []byte) error
- func (p *AptPackage) Validate() error
- type AptPackageChecksum
- func (m *AptPackageChecksum) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AptPackageChecksum) CloneVT() *AptPackageChecksum
- func (this *AptPackageChecksum) EqualMessageVT(thatMsg any) bool
- func (this *AptPackageChecksum) EqualVT(that *AptPackageChecksum) bool
- func (x *AptPackageChecksum) GetAlgorithm() string
- func (x *AptPackageChecksum) GetHex() string
- func (x *AptPackageChecksum) MarshalJSON() ([]byte, error)
- func (x *AptPackageChecksum) MarshalProtoJSON(s *json.MarshalState)
- func (x *AptPackageChecksum) MarshalProtoText() string
- func (m *AptPackageChecksum) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AptPackageChecksum) MarshalToVT(dAtA []byte) (int, error)
- func (m *AptPackageChecksum) MarshalVT() (dAtA []byte, err error)
- func (*AptPackageChecksum) ProtoMessage()
- func (x *AptPackageChecksum) Reset()
- func (m *AptPackageChecksum) SizeVT() (n int)
- func (x *AptPackageChecksum) String() string
- func (x *AptPackageChecksum) UnmarshalJSON(b []byte) error
- func (x *AptPackageChecksum) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AptPackageChecksum) UnmarshalVT(dAtA []byte) error
- type AptPackageState
- func (s AptPackageState) CanTransitionTo(next AptPackageState) bool
- func (s AptPackageState) EnsureTransitionTo(next AptPackageState) error
- func (x AptPackageState) Enum() *AptPackageState
- func (x AptPackageState) MarshalJSON() ([]byte, error)
- func (x AptPackageState) MarshalProtoJSON(s *json.MarshalState)
- func (x AptPackageState) MarshalProtoText() string
- func (x AptPackageState) MarshalText() ([]byte, error)
- func (x AptPackageState) String() string
- func (x *AptPackageState) UnmarshalJSON(b []byte) error
- func (x *AptPackageState) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *AptPackageState) UnmarshalText(b []byte) error
- func (s AptPackageState) Validate() error
- type AptPublishPackageOp
- func (o *AptPublishPackageOp) ApplyWorldObjectOp(ctx context.Context, le *logrus.Entry, os world.ObjectState, sender peer.ID) (sysErr bool, err error)
- func (o *AptPublishPackageOp) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (sysErr bool, err error)
- func (m *AptPublishPackageOp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AptPublishPackageOp) CloneVT() *AptPublishPackageOp
- func (this *AptPublishPackageOp) EqualMessageVT(thatMsg any) bool
- func (this *AptPublishPackageOp) EqualVT(that *AptPublishPackageOp) bool
- func (o *AptPublishPackageOp) GetOperationTypeId() string
- func (x *AptPublishPackageOp) GetPackageKey() string
- func (o *AptPublishPackageOp) MarshalBlock() ([]byte, error)
- func (x *AptPublishPackageOp) MarshalJSON() ([]byte, error)
- func (x *AptPublishPackageOp) MarshalProtoJSON(s *json.MarshalState)
- func (x *AptPublishPackageOp) MarshalProtoText() string
- func (m *AptPublishPackageOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AptPublishPackageOp) MarshalToVT(dAtA []byte) (int, error)
- func (m *AptPublishPackageOp) MarshalVT() (dAtA []byte, err error)
- func (*AptPublishPackageOp) ProtoMessage()
- func (x *AptPublishPackageOp) Reset()
- func (m *AptPublishPackageOp) SizeVT() (n int)
- func (x *AptPublishPackageOp) String() string
- func (o *AptPublishPackageOp) UnmarshalBlock(data []byte) error
- func (x *AptPublishPackageOp) UnmarshalJSON(b []byte) error
- func (x *AptPublishPackageOp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AptPublishPackageOp) UnmarshalVT(dAtA []byte) error
- func (o *AptPublishPackageOp) Validate() error
- type AptRepository
- func (m *AptRepository) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AptRepository) CloneVT() *AptRepository
- func (this *AptRepository) EqualMessageVT(thatMsg any) bool
- func (this *AptRepository) EqualVT(that *AptRepository) bool
- func (x *AptRepository) GetArchitectures() []string
- func (r *AptRepository) GetBlockTypeId() string
- func (x *AptRepository) GetComponents() []string
- func (x *AptRepository) GetDistribution() string
- func (x *AptRepository) GetIndexRef() *bucket.ObjectRef
- func (x *AptRepository) GetSigningKeyRef() *block.BlockRef
- func (x *AptRepository) GetState() AptRepositoryState
- func (r *AptRepository) MarshalBlock() ([]byte, error)
- func (x *AptRepository) MarshalJSON() ([]byte, error)
- func (x *AptRepository) MarshalProtoJSON(s *json.MarshalState)
- func (x *AptRepository) MarshalProtoText() string
- func (m *AptRepository) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AptRepository) MarshalToVT(dAtA []byte) (int, error)
- func (m *AptRepository) MarshalVT() (dAtA []byte, err error)
- func (*AptRepository) ProtoMessage()
- func (x *AptRepository) Reset()
- func (m *AptRepository) SizeVT() (n int)
- func (x *AptRepository) String() string
- func (r *AptRepository) TransitionState(next AptRepositoryState) error
- func (r *AptRepository) UnmarshalBlock(data []byte) error
- func (x *AptRepository) UnmarshalJSON(b []byte) error
- func (x *AptRepository) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AptRepository) UnmarshalVT(dAtA []byte) error
- func (r *AptRepository) Validate() error
- type AptRepositoryState
- func (s AptRepositoryState) CanTransitionTo(next AptRepositoryState) bool
- func (s AptRepositoryState) EnsureTransitionTo(next AptRepositoryState) error
- func (x AptRepositoryState) Enum() *AptRepositoryState
- func (x AptRepositoryState) MarshalJSON() ([]byte, error)
- func (x AptRepositoryState) MarshalProtoJSON(s *json.MarshalState)
- func (x AptRepositoryState) MarshalProtoText() string
- func (x AptRepositoryState) MarshalText() ([]byte, error)
- func (x AptRepositoryState) String() string
- func (x *AptRepositoryState) UnmarshalJSON(b []byte) error
- func (x *AptRepositoryState) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *AptRepositoryState) UnmarshalText(b []byte) error
- func (s AptRepositoryState) Validate() error
- type AptSupersedePackageOp
- func (o *AptSupersedePackageOp) ApplyWorldObjectOp(ctx context.Context, le *logrus.Entry, os world.ObjectState, sender peer.ID) (sysErr bool, err error)
- func (o *AptSupersedePackageOp) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (sysErr bool, err error)
- func (m *AptSupersedePackageOp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AptSupersedePackageOp) CloneVT() *AptSupersedePackageOp
- func (this *AptSupersedePackageOp) EqualMessageVT(thatMsg any) bool
- func (this *AptSupersedePackageOp) EqualVT(that *AptSupersedePackageOp) bool
- func (o *AptSupersedePackageOp) GetOperationTypeId() string
- func (x *AptSupersedePackageOp) GetPackageKey() string
- func (o *AptSupersedePackageOp) MarshalBlock() ([]byte, error)
- func (x *AptSupersedePackageOp) MarshalJSON() ([]byte, error)
- func (x *AptSupersedePackageOp) MarshalProtoJSON(s *json.MarshalState)
- func (x *AptSupersedePackageOp) MarshalProtoText() string
- func (m *AptSupersedePackageOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AptSupersedePackageOp) MarshalToVT(dAtA []byte) (int, error)
- func (m *AptSupersedePackageOp) MarshalVT() (dAtA []byte, err error)
- func (*AptSupersedePackageOp) ProtoMessage()
- func (x *AptSupersedePackageOp) Reset()
- func (m *AptSupersedePackageOp) SizeVT() (n int)
- func (x *AptSupersedePackageOp) String() string
- func (o *AptSupersedePackageOp) UnmarshalBlock(data []byte) error
- func (x *AptSupersedePackageOp) UnmarshalJSON(b []byte) error
- func (x *AptSupersedePackageOp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AptSupersedePackageOp) UnmarshalVT(dAtA []byte) error
- func (o *AptSupersedePackageOp) Validate() error
- type CreateAptRepositoryOp
- func (o *CreateAptRepositoryOp) ApplyWorldObjectOp(ctx context.Context, le *logrus.Entry, os world.ObjectState, sender peer.ID) (sysErr bool, err error)
- func (o *CreateAptRepositoryOp) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (sysErr bool, err error)
- func (m *CreateAptRepositoryOp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *CreateAptRepositoryOp) CloneVT() *CreateAptRepositoryOp
- func (this *CreateAptRepositoryOp) EqualMessageVT(thatMsg any) bool
- func (this *CreateAptRepositoryOp) EqualVT(that *CreateAptRepositoryOp) bool
- func (x *CreateAptRepositoryOp) GetObjectKey() string
- func (o *CreateAptRepositoryOp) GetOperationTypeId() string
- func (x *CreateAptRepositoryOp) GetRepository() *AptRepository
- func (o *CreateAptRepositoryOp) MarshalBlock() ([]byte, error)
- func (x *CreateAptRepositoryOp) MarshalJSON() ([]byte, error)
- func (x *CreateAptRepositoryOp) MarshalProtoJSON(s *json.MarshalState)
- func (x *CreateAptRepositoryOp) MarshalProtoText() string
- func (m *CreateAptRepositoryOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CreateAptRepositoryOp) MarshalToVT(dAtA []byte) (int, error)
- func (m *CreateAptRepositoryOp) MarshalVT() (dAtA []byte, err error)
- func (*CreateAptRepositoryOp) ProtoMessage()
- func (x *CreateAptRepositoryOp) Reset()
- func (m *CreateAptRepositoryOp) SizeVT() (n int)
- func (x *CreateAptRepositoryOp) String() string
- func (o *CreateAptRepositoryOp) UnmarshalBlock(data []byte) error
- func (x *CreateAptRepositoryOp) UnmarshalJSON(b []byte) error
- func (x *CreateAptRepositoryOp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *CreateAptRepositoryOp) UnmarshalVT(dAtA []byte) error
- func (o *CreateAptRepositoryOp) Validate() error
- type DebPackageBlockWriter
Constants ¶
const AptBuildSpecTypeID = "spacewave-vm/apt/build-spec"
AptBuildSpecTypeID is the type identifier for AptBuildSpec objects.
const AptPackageTypeID = "spacewave-vm/apt/package"
AptPackageTypeID is the type identifier for AptPackage objects.
const AptRepositoryTypeID = "spacewave-vm/apt/repository"
AptRepositoryTypeID is the type identifier for AptRepository objects.
Variables ¶
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") )
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.
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.
var AddAptBuildSpecOpId = "spacewave-vm/apt/build-spec/add"
AddAptBuildSpecOpId is the operation id for AddAptBuildSpecOp.
var AddAptPackageOpId = "spacewave-vm/apt/package/add"
AddAptPackageOpId is the operation id for AddAptPackageOp.
var AptPublishPackageOpId = "spacewave-vm/apt/package/publish"
AptPublishPackageOpId is the operation id for AptPublishPackageOp.
var AptSupersedePackageOpId = "spacewave-vm/apt/package/supersede"
AptSupersedePackageOpId is the operation id for AptSupersedePackageOp.
var CreateAptRepositoryOpId = "spacewave-vm/apt/repository/create"
CreateAptRepositoryOpId is the operation id for CreateAptRepositoryOp.
var PredAptPackageBuildSpec = quad.IRI("spacewave-vm/apt/package-buildspec")
PredAptPackageBuildSpec links an AptPackage to the AptBuildSpec that produced it.
var PredAptRepoBuildSpec = quad.IRI("spacewave-vm/apt/repo-buildspec")
PredAptRepoBuildSpec links an AptRepository to an AptBuildSpec.
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
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
LookupAddAptBuildSpecOp looks up an AddAptBuildSpecOp operation type.
func LookupAddAptPackageOp ¶ added in v0.52.0
LookupAddAptPackageOp looks up an AddAptPackageOp operation type.
func LookupAptOp ¶ added in v0.52.0
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
NewAddAptBuildSpecOpBlock constructs a new AddAptBuildSpecOp block.
func NewAddAptPackageOpBlock ¶ added in v0.52.0
NewAddAptPackageOpBlock constructs a new AddAptPackageOp block.
func NewAptBuildSpecBlock ¶ added in v0.52.0
NewAptBuildSpecBlock constructs a new AptBuildSpec block.
func NewAptPackageBlock ¶
NewAptPackageBlock constructs a new AptPackage block.
func NewAptPublishPackageOpBlock ¶ added in v0.52.0
NewAptPublishPackageOpBlock constructs a new AptPublishPackageOp block.
func NewAptRepositoryBlock ¶
NewAptRepositoryBlock constructs a new AptRepository block.
func NewAptSupersedePackageOpBlock ¶ added in v0.52.0
NewAptSupersedePackageOpBlock constructs a new AptSupersedePackageOp block.
func NewCreateAptRepositoryOpBlock ¶ added in v0.52.0
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 (m *AptPublishPackageOp) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*AptPublishPackageOp) CloneVT ¶ added in v0.52.0
func (m *AptPublishPackageOp) CloneVT() *AptPublishPackageOp
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 (x AptRepositoryState) Enum() *AptRepositoryState
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 (m *AptSupersedePackageOp) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*AptSupersedePackageOp) CloneVT ¶ added in v0.52.0
func (m *AptSupersedePackageOp) CloneVT() *AptSupersedePackageOp
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 (m *CreateAptRepositoryOp) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*CreateAptRepositoryOp) CloneVT ¶ added in v0.52.0
func (m *CreateAptRepositoryOp) CloneVT() *CreateAptRepositoryOp
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.