Documentation
¶
Index ¶
- Constants
- type MockObjectStore
- type ObjectStore
- type Store
- func (s Store) DownloadFile(ctx context.Context, key string) (io.ReadCloser, error)
- func (s *Store) GenerateKey(name string) string
- func (s Store) UploadArtifacts(ctx context.Context, as []types.Artifact) ([]types.SavedArtifact, error)
- func (s Store) UploadFile(ctx context.Context, key string, body io.Reader) (string, error)
- type StoreOps
Constants ¶
View Source
const IDByteSize = 6
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockObjectStore ¶
type MockObjectStore struct{}
func (MockObjectStore) DownloadFile ¶
func (m MockObjectStore) DownloadFile(_ context.Context, _ string) (io.ReadCloser, error)
func (MockObjectStore) UploadArtifacts ¶
func (m MockObjectStore) UploadArtifacts(_ context.Context, _ []types.Artifact) ([]types.SavedArtifact, error)
func (MockObjectStore) UploadFile ¶
type ObjectStore ¶
type Store ¶
type Store struct {
Bucket string
Endpoint string
AccessKey string
SecretAccessKey string
Signature string
Region string
Prefix string
// contains filtered or unexported fields
}
func (Store) DownloadFile ¶
DownloadFile.
func (*Store) GenerateKey ¶
func (Store) UploadArtifacts ¶
Click to show internal directories.
Click to hide internal directories.