Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrArtifactNotFoundinSrc = fmt.Errorf("artifact not found in src") ErrArtifactAlreadyExists = fmt.Errorf("artifact already exists") )
Functions ¶
Types ¶
type Artifact ¶
type Artifact interface { io.ReadWriteCloser }
type Store ¶
type Store interface { NewArtifact(_ context.Context, artifactID string, size int64) (io.WriteCloser, error) GetArtifact(_ context.Context, id string) (io.ReadCloser, int64, error) List(context.Context) ([]string, error) Clean(context.Context) error ArtifactExists(ctx context.Context, id string) bool ArtifactRemove(ctx context.Context, id string) error Done() error }
Click to show internal directories.
Click to hide internal directories.