ecsview

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterContainers

func GetClusterContainers(cluster *aws.EcsCluster) []*aws.EcsContainer

Returns the containers for a given cluster

func GetClusters

func GetClusters() []*aws.EcsCluster

Returns a slice of ECS Clusters. If this is the first time, the clusters and their instances are loaded and cached.

Types

type ClusterData

type ClusterData struct {
	Cluster          *aws.EcsCluster
	Services         []*ecs.Service
	Tasks            []*ecs.Task
	TaskDefArnLookup map[string]*ecs.TaskDefinition
	Containers       []*aws.EcsContainer
	Refreshed        time.Time
}

Stores information about an AWS ECS cluster

func GetClusterData

func GetClusterData(cluster *aws.EcsCluster) *ClusterData

Returns data about the given cluster

func RefreshClusterData

func RefreshClusterData(cluster *aws.EcsCluster) *ClusterData

Returns data about the cluster, freshly loaded from AWS

Jump to

Keyboard shortcuts

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