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 GitHub Actions Artifacts.
func (*Store) Download ¶
func (s *Store) Download(ctx context.Context, key string) (io.ReadCloser, *planfile.Metadata, error)
Download downloads a planfile from GitHub artifacts.
func (*Store) GetMetadata ¶
GetMetadata retrieves metadata for a planfile artifact.
func (*Store) Upload ¶
func (s *Store) Upload(ctx context.Context, key string, data io.Reader, metadata *planfile.Metadata) error
Upload uploads a planfile as a GitHub artifact. Note: GitHub Actions artifacts must be uploaded using the @actions/artifact toolkit within a workflow. This implementation provides the interface but may require shell-out to the actions toolkit for actual uploads.
Click to show internal directories.
Click to hide internal directories.