Documentation
¶
Index ¶
- func ErrCode(msg string, err error) error
- type EFS
- func (e *EFS) CreateFileSystem(ctx context.Context, input *efs.CreateFileSystemInput) (*efs.FileSystemDescription, error)
- func (e *EFS) CreateMountTarget(ctx context.Context, input *efs.CreateMountTargetInput) (*efs.MountTargetDescription, error)
- func (e *EFS) DeleteFileSystem(ctx context.Context, id string) error
- func (e *EFS) DeleteMountTarget(ctx context.Context, id string) error
- func (e *EFS) GetFileSystem(ctx context.Context, id string) (*efs.FileSystemDescription, error)
- func (e *EFS) GetFilesystemBackup(ctx context.Context, id string) (string, error)
- func (e *EFS) GetFilesystemLifecycle(ctx context.Context, id string) (string, error)
- func (e *EFS) ListFileSystems(ctx context.Context, input *efs.DescribeFileSystemsInput) ([]string, error)
- func (e *EFS) ListMountTargetsForFileSystem(ctx context.Context, id string) ([]*efs.MountTargetDescription, error)
- func (e *EFS) SetFileSystemBackup(ctx context.Context, id, status string) error
- func (e *EFS) SetFileSystemLifecycle(ctx context.Context, id, config string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EFS ¶
type EFS struct { Service efsiface.EFSAPI DefaultKmsKeyId string DefaultSgs []string DefaultSubnets []string }
EFS is a wrapper around the aws EFS service with some default config info
func (*EFS) CreateFileSystem ¶
func (e *EFS) CreateFileSystem(ctx context.Context, input *efs.CreateFileSystemInput) (*efs.FileSystemDescription, error)
CreateFilesystem creates an EFS filesystem
func (*EFS) CreateMountTarget ¶
func (e *EFS) CreateMountTarget(ctx context.Context, input *efs.CreateMountTargetInput) (*efs.MountTargetDescription, error)
CreateMountTarget creates an EFS mount target
func (*EFS) DeleteFileSystem ¶
DeleteFilsystem deletes an EFS filesystem
func (*EFS) DeleteMountTarget ¶
DeleteMountTarget deletes mount targets
func (*EFS) GetFileSystem ¶
GetFilesystem gets details about a filesystem
func (*EFS) GetFilesystemBackup ¶ added in v0.4.0
GetFilesystemBackup gets the backup policy status for a filesystem
func (*EFS) GetFilesystemLifecycle ¶ added in v0.3.0
GetFilesystemLifecycle gets the lifecycle transition configuration for a filesystem
func (*EFS) ListFileSystems ¶
func (e *EFS) ListFileSystems(ctx context.Context, input *efs.DescribeFileSystemsInput) ([]string, error)
ListFilesystems lists all filesystems if nil input is passed
func (*EFS) ListMountTargetsForFileSystem ¶
func (e *EFS) ListMountTargetsForFileSystem(ctx context.Context, id string) ([]*efs.MountTargetDescription, error)
ListMountTargetsForFileSystem lists the mount targets for a filesystem - there should never be more than 2 since you're only allowed one per AZ
func (*EFS) SetFileSystemBackup ¶ added in v0.4.0
SetFileSystemBackup sets a lifecycle transition policy on a filesystem