Documentation ¶
Index ¶
- type ArtifactoryStorageService
- func (s *ArtifactoryStorageService) Delete(ctx context.Context, objectID string) error
- func (s *ArtifactoryStorageService) Exists(ctx context.Context, objectID string) (bool, error)
- func (s *ArtifactoryStorageService) GetRequest(ctx context.Context, objectID string, duration time.Duration, ...) (*model.Link, error)
- func (s *ArtifactoryStorageService) LastModified(ctx context.Context, objectId string) (time.Time, error)
- func (s *ArtifactoryStorageService) PutRequest(ctx context.Context, objectId string, duration time.Duration) (*model.Link, error)
- func (s *ArtifactoryStorageService) SyncArtifact(ctx context.Context, objectId string, path string) (int64, error)
- func (s *ArtifactoryStorageService) UploadArtifact(ctx context.Context, objectId string, artifactSize int64, artifact io.Reader, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactoryStorageService ¶
type ArtifactoryStorageService struct {
// contains filtered or unexported fields
}
ArtifactoryStorageService - Artifactory storage client
func NewArtifactoryStorageService ¶
func NewArtifactoryStorageService(uri string, access_token string) (*ArtifactoryStorageService, error)
NewArtifactoryStorageService create a new Artifactory client model
func (*ArtifactoryStorageService) Delete ¶
func (s *ArtifactoryStorageService) Delete(ctx context.Context, objectID string) error
Delete removes delected file from storage. Noop if ID does not exist.
func (*ArtifactoryStorageService) GetRequest ¶
func (s *ArtifactoryStorageService) GetRequest(ctx context.Context, objectID string, duration time.Duration, responseContentType string) (*model.Link, error)
GetRequest this is what the client will use to fetch the artifact
func (*ArtifactoryStorageService) LastModified ¶
func (s *ArtifactoryStorageService) LastModified(ctx context.Context, objectId string) (time.Time, error)
LastModified returns last file modification time. If object not found return ErrFileStorageFileNotFound
func (*ArtifactoryStorageService) PutRequest ¶
func (s *ArtifactoryStorageService) PutRequest(ctx context.Context, objectId string, duration time.Duration) (*model.Link, error)
PutRequest this is not implemented for this filestore
func (*ArtifactoryStorageService) SyncArtifact ¶
func (s *ArtifactoryStorageService) SyncArtifact(ctx context.Context, objectId string, path string) (int64, error)
SyncArtifact is used to link an existing artifact with a mender artifact id
func (*ArtifactoryStorageService) UploadArtifact ¶
func (s *ArtifactoryStorageService) UploadArtifact(ctx context.Context, objectId string, artifactSize int64, artifact io.Reader, contentType string) error
UploadArtifact uploads given artifact into the file server (AWS S3 or minio) using objectID as a key
Click to show internal directories.
Click to hide internal directories.