artifactoryfs

package
v0.0.0-...-b206e69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2019 License: Apache-2.0, Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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) Exists

func (s *ArtifactoryStorageService) Exists(ctx context.Context, objectID string) (bool, error)

Exists check if selected object exists in the storage

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL