componentarchive

package
v0.0.0-...-4ea3133 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveFileSystem

type ArchiveFileSystem interface {
	CreateArchiveFileSystem(path string) error
	WriteFile(data []byte, fileName string) error
	GetArchiveFileSystem() vfs.FileSystem
}

type ComponentArchive

type ComponentArchive interface {
	AddBlob(blob cpi.BlobAccess, artType string, refName string, global cpi.AccessSpec,
		opts ...cpi.BlobUploadOption) (cpi.AccessSpec, error)
	SetResource(meta *cpi.ResourceMeta, access compdesc.AccessSpec, opts ...cpi.ModificationOption) error
	Close() error
}

type Service

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

func NewService

func NewService(fileSystem ArchiveFileSystem) (*Service, error)

func (*Service) AddModuleResourcesToArchive

func (s *Service) AddModuleResourcesToArchive(archive ComponentArchive,
	moduleResources []resources.Resource,
) error

func (*Service) CreateComponentArchive

func (s *Service) CreateComponentArchive(descriptor *compdesc.ComponentDescriptor) (*comparch.ComponentArchive, error)

Jump to

Keyboard shortcuts

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