Documentation
¶
Index ¶
- func NewStore(opts planfile.StoreOptions) (planfile.Store, error)
- type Store
- func (s *Store) Delete(ctx context.Context, key string) error
- func (s *Store) Download(ctx context.Context, key string) (io.ReadCloser, *planfile.Metadata, error)
- func (s *Store) Exists(ctx context.Context, key string) (bool, error)
- func (s *Store) GetMetadata(ctx context.Context, key string) (*planfile.Metadata, error)
- func (s *Store) List(ctx context.Context, prefix string) ([]planfile.PlanfileInfo, error)
- func (s *Store) Name() string
- func (s *Store) Upload(ctx context.Context, key string, data io.Reader, metadata *planfile.Metadata) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements the planfile.Store interface using AWS S3.
func (*Store) Download ¶
func (s *Store) Download(ctx context.Context, key string) (io.ReadCloser, *planfile.Metadata, error)
Download downloads a planfile from S3.
func (*Store) GetMetadata ¶
GetMetadata retrieves metadata for a planfile without downloading the content.
Click to show internal directories.
Click to hide internal directories.