aws

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_METHOD   = "POST"
	SERVICE          = "cloud9"
	URL_PATTERN      = "https://%s.%s.amazonaws.com/"
	OPERATION_PREFIX = "AWSCloud9WorkspaceManagementService"
	AWS_JSON         = "application/x-amz-json-1.1"
	MAX_RESULTS      = 25
)
View Source
const (
	OWNER      = "owner"
	READ_WRITE = "read-write"
	READONLY   = "read-only"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCloud9Client

type AWSCloud9Client struct {
	Cloud9 *cloud9.Cloud9
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, credentials *credentials.Credentials, region string) *AWSCloud9Client

func (*AWSCloud9Client) CreateEnvironmentSSH

func (client *AWSCloud9Client) CreateEnvironmentSSH(request *CreateEnvironmentSSHRequest) (*CreateEnvironmentSSHResult, error)

func (*AWSCloud9Client) DescribeSSHRemote

func (client *AWSCloud9Client) DescribeSSHRemote(environmentId string) (*DescribeSSHRemoteResult, error)

func (*AWSCloud9Client) GetMemberShips

func (client *AWSCloud9Client) GetMemberShips(environmentId string) ([]Cloud9EnvironmentMembership, error)

func (*AWSCloud9Client) GetSSHEnvironments

func (client *AWSCloud9Client) GetSSHEnvironments(envIds ...string) ([]Cloud9SSHEnvironment, error)

func (*AWSCloud9Client) GetUserPublicKey

func (client *AWSCloud9Client) GetUserPublicKey() (*GetUserPublicKeyResult, error)

func (*AWSCloud9Client) UpdateEnvironment

func (client *AWSCloud9Client) UpdateEnvironment(env Cloud9SSHEnvironment) error

func (*AWSCloud9Client) UpdateSSHRemote

func (client *AWSCloud9Client) UpdateSSHRemote(request *UpdateSSHRemoteRequest) error

type AWSError

type AWSError struct {
	ExceptionType string `json:"__type"`
	Message       string `json:"message"`
}

type Cloud9EnvironmentMembership

type Cloud9EnvironmentMembership struct {
	EnvironmentId string `json:"environment_id"`
	Permissions   string `json:"permissions"`
	UserARN       string `json:"userArn"`
	UserID        string `json:"userId"`
}

type Cloud9SSHEnvironment

type Cloud9SSHEnvironment struct {
	Arn             string `json:"arn,omitempty"`
	EnvironmentId   string `json:"environment_id"`
	Name            string `json:"name"`
	Description     string `json:"description,omitempty"`
	LoginName       string `json:"loginName"`
	Hostname        string `json:"host"`
	Port            int16  `json:"port"`
	EnvironmentPath string `json:"environmentPath,omitempty"`
	NodePath        string `json:"nodePath,omitempty"`
	BastionHost     string `json:"bastionHost,omitempty"`
	DryRun          bool   `json:"dryRun"`
	Tags            []Tag  `json:"tags"`
}

type CreateEnvironmentSSHRequest

type CreateEnvironmentSSHRequest struct {
	Name            string `json:"name"`
	Description     string `json:"description,omitempty"`
	LoginName       string `json:"loginName"`
	Hostname        string `json:"host"`
	Port            int16  `json:"port"`
	EnvironmentPath string `json:"environmentPath,omitempty"`
	NodePath        string `json:"nodePath,omitempty"`
	BastionHost     string `json:"bastionHost,omitempty"`
	DryRun          bool   `json:"dryRun"`
	Tags            []Tag  `json:"tags"`
}

type CreateEnvironmentSSHResult

type CreateEnvironmentSSHResult struct {
	EnvironmentId string `json:"environmentId"`
}

type DescribeSSHRemoteRequest

type DescribeSSHRemoteRequest struct {
	EnvironmentId string `json:"environmentId"`
}

type DescribeSSHRemoteResult

type DescribeSSHRemoteResult struct {
	Results SSHRemoteEnvironmentDescription `json:"remote"`
}

type GetUserPublicKeyResult

type GetUserPublicKeyResult struct {
	PublicKey string `json:"publicKey"`
}

type SSHRemoteEnvironmentDescription

type SSHRemoteEnvironmentDescription struct {
	EnvironmentPath string `json:"environmentPath"`
	Hostname        string `json:"host"`
	Description     string `json:"description,omitempty"`
	LoginName       string `json:"loginName"`
	Port            int16  `json:"port"`
	NodePath        string `json:"nodePath"`
	BastionHost     string `json:"bastionHost"`
}

type Tag

type Tag struct {
	Key   string `json:"Key"`
	Value string `json:"Value"`
}

type UpdateSSHRemoteRequest

type UpdateSSHRemoteRequest struct {
	EnvironmentId   string `json:"environmentId"`
	LoginName       string `json:"loginName"`
	Hostname        string `json:"host"`
	Port            int16  `json:"port"`
	EnvironmentPath string `json:"environmentPath"`
	NodePath        string `json:"nodePath"`
	BastionHost     string `json:"bastionHost"`
}

Jump to

Keyboard shortcuts

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