client

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TcpProtocol = "tcp"
	NfsPort     = int32(2049)
)

Variables

This section is empty.

Functions

func NewClientProvider

func NewClientProvider() awsclient.SkrClientProvider[Client]

Types

type Client

type Client interface {
	DescribeSubnet(ctx context.Context, subnetId string) (*ec2Types.Subnet, error)
	DescribeSecurityGroups(ctx context.Context, filters []ec2Types.Filter, groupIds []string) ([]ec2Types.SecurityGroup, error)
	CreateSecurityGroup(ctx context.Context, vpcId, name string, tags []ec2Types.Tag) (string, error)
	DeleteSecurityGroup(ctx context.Context, id string) error
	AuthorizeSecurityGroupIngress(ctx context.Context, groupId string, ipPermissions []ec2Types.IpPermission) error

	DescribeFileSystems(ctx context.Context) ([]efsTypes.FileSystemDescription, error)
	CreateFileSystem(
		ctx context.Context,
		performanceMode efsTypes.PerformanceMode,
		throughputMode efsTypes.ThroughputMode,
		tags []efsTypes.Tag,
	) (*efs.CreateFileSystemOutput, error)
	DeleteFileSystem(ctx context.Context, fsId string) error
	DescribeMountTargets(ctx context.Context, fsId string) ([]efsTypes.MountTargetDescription, error)
	CreateMountTarget(ctx context.Context, fsId, subnetId string, securityGroups []string) (string, error)
	DeleteMountTarget(ctx context.Context, mountTargetId string) error

	DescribeMountTargetSecurityGroups(ctx context.Context, mountTargetId string) ([]string, error)
}

Jump to

Keyboard shortcuts

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