Documentation ¶
Index ¶
- func GetServices(api ECS, cluster string) ([]string, error)
- func GetSession(profile string, region string) aws.Config
- func PrintBalancers(wrt io.Writer, resources []Balancer) error
- func PrintCmdLogs(wrt io.Writer, resources CmdLogs) error
- func PrintDBClusterEndpoints(wrt io.Writer, resources []DBClusterEndpoint) error
- func PrintDBClusters(wrt io.Writer, resources []DBCluster) error
- func PrintDBInstances(wrt io.Writer, resources []DBInstance) error
- func PrintEvents(wrt io.Writer, resources Events) error
- func PrintExportTasks(wrt io.Writer, resources []ExportTasks) error
- func PrintInstances(wrt io.Writer, resources []Instance) error
- func PrintNodes(wrt io.Writer, resources []CacheNode) error
- func PrintObjects(wrt io.Writer, resources Objects) error
- func PrintParameters(wrt io.Writer, resources Parameters) error
- func PrintRecords(wrt io.Writer, resources Records) error
- func PrintRoles(wrt io.Writer, resources Roles) error
- func PrintSessHist(wrt io.Writer, resources Sessions) error
- func PrintStacks(wrt io.Writer, resources Stacks) error
- func PrintUsers(wrt io.Writer, resources Users) error
- type Balancer
- type CacheNode
- type CloudFormation
- type Cluster
- type CmdLog
- type CmdLogs
- type DBCluster
- type DBClusterEndpoint
- type DBInstance
- type EC2
- type ECS
- type ELB
- type ELBV2
- type ElastiCache
- type Event
- type Events
- type ExportTasks
- type IAM
- type Instance
- type Object
- type Objects
- type Parameter
- type Parameters
- type RDS
- func (c *RDS) DescribeDBClusterEndpoints(input *rds.DescribeDBClusterEndpointsInput) ([]DBClusterEndpoint, error)
- func (c *RDS) DescribeDBClusters(input *rds.DescribeDBClustersInput) ([]DBCluster, error)
- func (c *RDS) DescribeDBInstances(input *rds.DescribeDBInstancesInput) ([]DBInstance, error)
- func (c *RDS) DescribeExportTasks(input *rds.DescribeExportTasksInput) ([]ExportTasks, error)
- type Record
- type Records
- type Response
- type Responses
- type Role
- type Roles
- type Route53
- type S3
- type SSM
- func (c *SSM) DeleteSession(input *ssm.TerminateSessionInput) error
- func (c *SSM) DescribeInstanceInformation(input *ssm.DescribeInstanceInformationInput) ([]string, error)
- func (c *SSM) DescribeParameters(input *ssm.DescribeParametersInput) ([]types.ParameterMetadata, error)
- func (c *SSM) GetParameter(params []types.ParameterMetadata) (Parameters, error)
- func (c *SSM) ListCommandInvocations(input *ssm.ListCommandInvocationsInput) (Responses, error)
- func (c *SSM) SendCommand(input *ssm.SendCommandInput) (*ssm.SendCommandOutput, error)
- func (c *SSM) StartSession(input *ssm.StartSessionInput) (*ssm.StartSessionOutput, error)
- type Session
- type Sessions
- type Stack
- type Stacks
- type User
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSession ¶
GetSession returns aws.Config structure. The received structure is passed to `NewFromConfig` function of each AWS service.
func PrintDBClusterEndpoints ¶
func PrintDBClusterEndpoints(wrt io.Writer, resources []DBClusterEndpoint) error
func PrintDBInstances ¶
func PrintDBInstances(wrt io.Writer, resources []DBInstance) error
func PrintExportTasks ¶
func PrintExportTasks(wrt io.Writer, resources []ExportTasks) error
func PrintParameters ¶
func PrintParameters(wrt io.Writer, resources Parameters) error
Types ¶
type CacheNode ¶
type CacheNode struct { ReplicationGroupId string CacheClusterId string CacheNodeId string CacheNodeType string Engine string EngineVersion string CurrentRole string CacheClusterStatus string CacheNodeStatus string }
CacheNode structure is elasticache node information.
func (*CacheNode) NodeTabString ¶
type CloudFormation ¶
type CloudFormation struct {
Client *cloudformation.Client
}
CloudFormation client struct
func NewCfnClient ¶
func NewCfnClient(profile, region string) *CloudFormation
NewCfnSess return CloudFormation struct initialized
func (*CloudFormation) DescribeStackEvents ¶
func (c *CloudFormation) DescribeStackEvents(input *cloudformation.DescribeStackEventsInput) (Events, error)
DescribeStackEvents return Events input cloudformation.DescribeStackEventsInput
func (*CloudFormation) DescribeStacks ¶
func (c *CloudFormation) DescribeStacks(input *cloudformation.DescribeStacksInput) (Stacks, error)
DescribeStacks return Stacks input cloudformation.DescribeStacksInput
type Cluster ¶
func GetClusters ¶
type CmdLog ¶
type CmdLog struct { DocumentName string Commands string Targets string Status string RequestedDateTime string }
CmdLog sendcommand log struct
func (*CmdLog) CmdLogTabString ¶
type DBCluster ¶
type DBCluster struct { Name string EngineMode string EngineVersion string Capacity string Status string }
DBCluster structure is rds cluster information.
func (*DBCluster) RdsClusterTabString ¶
type DBClusterEndpoint ¶
DBClusterEndpoint structure is rds cluster endpoint information.
func (*DBClusterEndpoint) RdsClusterEndpointTabString ¶
func (i *DBClusterEndpoint) RdsClusterEndpointTabString() string
type DBInstance ¶
type DBInstance struct { Name string DBInstanceClass string Engine string EngineVersion string Storage string StorageType string DBInstanceStatus string }
DBInstance structure is rds instance information.
func (*DBInstance) RdsTabString ¶
func (i *DBInstance) RdsTabString() string
type EC2 ¶
EC2 structure is ec2 client.
func NewEc2Client ¶
NewEc2Client returns EC2 struct initialized.
func (*EC2) DescribeInstances ¶
func (c *EC2) DescribeInstances(input *ec2.DescribeInstancesInput) ([]Instance, error)
DescribeInstances returns slice Instance structure.
type ECS ¶
type ECS interface { DescribeClusters(ctx context.Context, input *ecs.DescribeClustersInput, opts ...func(*ecs.Options)) (*ecs.DescribeClustersOutput, error) ListClusters(ctx context.Context, input *ecs.ListClustersInput, opts ...func(*ecs.Options)) (*ecs.ListClustersOutput, error) ListServices(ctx context.Context, input *ecs.ListServicesInput, opts ...func(*ecs.Options)) (*ecs.ListServicesOutput, error) }
func NewECSClient ¶
type ELB ¶
ELB structure is elb client.
func NewElbClient ¶
NewElbClient returns ELB struct initialized.
func (*ELB) DescribeLoadBalancers ¶
func (c *ELB) DescribeLoadBalancers(input *elb.DescribeLoadBalancersInput) ([]Balancer, error)
DescribeLoadBalancers returns slice Balancer structure.
type ELBV2 ¶
ELBV2 structure is elb client.
func NewElbV2Client ¶
NewElbV2Client returns ELBV2 struct initialized.
func (*ELBV2) DescribeLoadBalancersV2 ¶
func (c *ELBV2) DescribeLoadBalancersV2(input *elbv2.DescribeLoadBalancersInput) ([]Balancer, error)
DescribeLoadBalancersV2 returns slice Balancer structure.
type ElastiCache ¶
type ElastiCache struct {
Client *elasticache.Client
}
ElastiCache structure is elasticache client.
func NewElastiCacheClient ¶
func NewElastiCacheClient(profile, region string) *ElastiCache
NewElastiCacheClient return ElastiCache struct initialized.
func (*ElastiCache) DescribeCacheClusters ¶
func (c *ElastiCache) DescribeCacheClusters(input *elasticache.DescribeCacheClustersInput) ([]CacheNode, error)
DescribeCacheClusters returns slice CacheNode structure.
func (*ElastiCache) DescribeReplicationGroups ¶
func (c *ElastiCache) DescribeReplicationGroups(input *elasticache.DescribeReplicationGroupsInput, node CacheNode) (CacheNode, error)
DescribeReplicationGroups returns CacheNode structure.
type Event ¶
type Event struct { Timestamp string LogicalResourceId string ResourceStatus string ResourceStatusReason string }
Event cloudformation stack events struct
func (*Event) EventTabString ¶
type ExportTasks ¶
type ExportTasks struct { ExportTaskIdentifier string Source string Status string TaskStartTime string TaskEndTime string }
ExportTasks structure is rds export tasks information.
func (*ExportTasks) ExportTasksTabString ¶
func (i *ExportTasks) ExportTasksTabString() string
type IAM ¶
IAM client struct
func NewIamClient ¶
NewIamSess return IAM struct initialized
type Instance ¶
type Instance struct { Name string InstanceId string InstanceType string Lifecycle string PrivateIpAddress string PublicIpAddress string State string KeyName string AvailabilityZone string LaunchTime string }
Instance structure is ec2 instance information.
func (*Instance) Ec2TabString ¶
type RDS ¶
RDS structure is rds client.
func NewRdsClient ¶
NewRdsClient returns RDS struct initialized.
func (*RDS) DescribeDBClusterEndpoints ¶
func (c *RDS) DescribeDBClusterEndpoints(input *rds.DescribeDBClusterEndpointsInput) ([]DBClusterEndpoint, error)
DescribeDBClusterEndpoints returns slice DBInstance structure.
func (*RDS) DescribeDBClusters ¶
func (c *RDS) DescribeDBClusters(input *rds.DescribeDBClustersInput) ([]DBCluster, error)
DescribeDBClusters returns slice DBCluster structure.
func (*RDS) DescribeDBInstances ¶
func (c *RDS) DescribeDBInstances(input *rds.DescribeDBInstancesInput) ([]DBInstance, error)
DescribeDBInstances returns slice DBInstance structure.
func (*RDS) DescribeExportTasks ¶
func (c *RDS) DescribeExportTasks(input *rds.DescribeExportTasksInput) ([]ExportTasks, error)
DescribeExportTasks returns slice ExportTasks structure.
type Response ¶
type Response struct { InstanceId string `json:"instance_id"` Status string `json:"status"` Output []string `json:"output"` }
Response sendcommand response struct
type Route53 ¶
Route53 client struct
func NewRoute53Client ¶
NewRoute53Sess return Route53 struct initialized
func (*Route53) ListHostedZones ¶
func (c *Route53) ListHostedZones(input *route53.ListHostedZonesInput) (Records, error)
ListHostedZones return Records input route53.ListHostedZonesInput
type S3 ¶
S3 client struct
func NewS3Client ¶
NewS3Sess return S3 struct initialized
func (*S3) GetObject ¶
func (c *S3) GetObject(input *s3.GetObjectInput) (io.ReadCloser, error)
GetObject return io.ReadCloser input s3.GetObjectInput
func (*S3) ListBuckets ¶
func (c *S3) ListBuckets(input *s3.ListBucketsInput) ([]string, error)
ListBuckets return []string (s3.ListBuckets.Buckets) input s3.ListBucketsInput
func (*S3) ListObjects ¶
func (c *S3) ListObjects(input *s3.ListObjectsV2Input) (Objects, error)
ListObjects return Objects input s3.ListObjectsV2Input
type SSM ¶
SSM client struct
func NewSsmClient ¶
NewSsmSess return SSM struct initialized
func (*SSM) DeleteSession ¶
func (c *SSM) DeleteSession(input *ssm.TerminateSessionInput) error
DeleteStartSession return none (Only error) input ssm.TerminateSessionInput
func (*SSM) DescribeInstanceInformation ¶
func (c *SSM) DescribeInstanceInformation(input *ssm.DescribeInstanceInformationInput) ([]string, error)
DescribeInstanceInformation return []string (ssm.DescribeInstanceInformationOutput.InstanceId) input ssm.DescribeInstanceInformationInput
func (*SSM) DescribeParameters ¶
func (c *SSM) DescribeParameters(input *ssm.DescribeParametersInput) ([]types.ParameterMetadata, error)
DescribeParameters return []*ssm.Parameters input ssm.DescribeParametersInput
func (*SSM) GetParameter ¶
func (c *SSM) GetParameter(params []types.ParameterMetadata) (Parameters, error)
GetParameter return Parameters input []*ssm.ParameterMetadata
func (*SSM) ListCommandInvocations ¶
func (c *SSM) ListCommandInvocations(input *ssm.ListCommandInvocationsInput) (Responses, error)
ListCommandInvocations return Responses input ssm.ListCommandInvocationsInput
func (*SSM) SendCommand ¶
func (c *SSM) SendCommand(input *ssm.SendCommandInput) (*ssm.SendCommandOutput, error)
SendCommand return ssm.SendCommandOutput input ssm.SendCommandInput
func (*SSM) StartSession ¶
func (c *SSM) StartSession(input *ssm.StartSessionInput) (*ssm.StartSessionOutput, error)
CreateStartSession return ssm.StartSessionOutput, string () input ssm.DescribeInstanceInformationInput