Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
PutObjectWithContext(ctx context.Context, bucketName, objectName string, reader io.Reader, objectSize int64, opts minio.PutObjectOptions) (n int64, err error)
GetObjectWithContext(ctx context.Context, bucketName, objectName string, opts minio.GetObjectOptions) (*minio.Object, error)
RemoveObject(bucketName, objectName string) error
BucketExists(bucketName string) (found bool, err error)
MakeBucket(bucketName, location string) error
}
type Repository ¶
type Repository interface {
Put(bucketName string, objectName string, resource []byte) apperrors.AppError
Get(bucketName string, objectName string) ([]byte, apperrors.AppError)
Remove(bucketName string, objectName string) apperrors.AppError
}
func NewMinioRepository ¶
type Service ¶
type Service interface {
Put(id string, documentation []byte, apiSpec []byte, eventsSpec []byte) apperrors.AppError
Get(id string) (documentation []byte, apiSpec []byte, eventsSpec []byte, apperr apperrors.AppError)
Remove(id string) apperrors.AppError
}
func NewService ¶
func NewService(repository Repository) Service
Click to show internal directories.
Click to hide internal directories.