client

package
v0.0.0-...-fd237a5 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 8 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 {
	DescribeSecurityGroups(ctx context.Context, filters []ec2Types.Filter, groupIds []string) ([]ec2Types.SecurityGroup, error)
	CreateSecurityGroup(ctx context.Context, vpcId, name string, tags []ec2Types.Tag) (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)
	DescribeMountTargets(ctx context.Context, fsId string) ([]efsTypes.MountTargetDescription, error)
	CreateMountTarget(ctx context.Context, fsId, subnetId string, securityGroups []string) (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