Documentation
¶
Index ¶
- Constants
- func CheckConfig() types.Check
- func LoadAWSConfig(ctx context.Context, settings cedanaconfig.AWS) (cfg aws.Config, err error)
- func NewStorage(ctx context.Context) (cedana_io.Storage, error)
- type File
- type Storage
- func (s *Storage) Create(ctx context.Context, path string) (io.WriteCloser, error)
- func (s *Storage) CreatePath(ctx context.Context, dir, name string) (path string, cleanup func(cancel bool) error, err error)
- func (s *Storage) Delete(_ context.Context, path string) error
- func (s *Storage) IsDir(_ context.Context, path string) (bool, error)
- func (s *Storage) IsRemote() bool
- func (s *Storage) Open(ctx context.Context, path string) (io.ReadCloser, error)
- func (s *Storage) ReadDir(ctx context.Context, path string) ([]string, error)
- func (s *Storage) ReadPath(ctx context.Context, path string) (string, func() error, error)
Constants ¶
View Source
const ( CredentialsModeStatic = "static" CredentialsModeEKSPodIdentity = "eksPodIdentity" CredentialsModeAmbient = "ambient" )
View Source
const MULTIPART_SIZE = 5 * utils.MEBIBYTE
View Source
const PATH_PREFIX = "s3://"
Variables ¶
This section is empty.
Functions ¶
func CheckConfig ¶ added in v0.9.265
func LoadAWSConfig ¶ added in v0.9.302
LoadAWSConfig validates the selected authentication mode and creates the AWS configuration shared by S3 storage and its health check.
Types ¶
Click to show internal directories.
Click to hide internal directories.