adapter

package
v1.217.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store adapts an artifact.Store to implement planfile.Store. It passes file entries through directly and converts metadata between formats.

func NewStore

func NewStore(backend artifact.Store) *Store

NewStore creates a new adapter Store wrapping the given artifact backend.

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, key string) error

Delete deletes a planfile artifact.

func (*Store) Download

func (s *Store) Download(ctx context.Context, key string) ([]planfile.FileResult, *planfile.Metadata, error)

Download downloads planfile entries from the backend and converts metadata.

func (*Store) Exists

func (s *Store) Exists(ctx context.Context, key string) (bool, error)

Exists checks if a planfile artifact exists.

func (*Store) GetMetadata

func (s *Store) GetMetadata(ctx context.Context, key string) (*planfile.Metadata, error)

GetMetadata retrieves planfile metadata without downloading content.

func (*Store) List

func (s *Store) List(ctx context.Context, query planfile.Query) ([]planfile.PlanfileInfo, error)

List lists planfiles matching the given query.

func (*Store) Name

func (s *Store) Name() string

Name returns the backend store type name.

func (*Store) Upload

func (s *Store) Upload(ctx context.Context, key string, files []planfile.FileEntry, metadata *planfile.Metadata) error

Upload uploads planfile entries by converting metadata and delegating to the backend.

Jump to

Keyboard shortcuts

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