Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- type Cluster
- func (c *Cluster) GetContainerLogs(namespace, podName, containerName string, tail int) (string, error)
- func (c *Cluster) GetPod(namespace string, name string) (*Pod, error)
- func (c *Cluster) GetPods() ([]*Pod, error)
- func (c *Cluster) InsertPod(pod *Pod, tag string)
- func (c *Cluster) RemovePod(tag string)
- type ClusterConfig
- type Pod
- type Regions
Constants ¶
View Source
const ( // VCPU is one virtual CPU core in EC2. VCPU int64 = 1024 // MiB is 2^20 bytes. MiB int64 = 1024 * 1024 // GiB is 2^30 bytes. GiB int64 = 1024 * MiB )
Variables ¶
View Source
var ( // FargateRegions are AWS regions where Fargate is available. FargateRegions = Regions{ "us-east-1", "us-east-2", "us-west-2", "eu-west-1", } )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client communicates with the regional AWS Fargate service.
type Cluster ¶
Cluster represents a Fargate cluster.
func NewCluster ¶
func NewCluster(config *ClusterConfig) (*Cluster, error)
NewCluster creates a new Cluster object.
func (*Cluster) GetContainerLogs ¶
func (c *Cluster) GetContainerLogs(namespace, podName, containerName string, tail int) (string, error)
GetContainerLogs returns the logs of a container from this cluster.
type ClusterConfig ¶
type ClusterConfig struct { Region string Name string NodeName string Subnets []string SecurityGroups []string AssignPublicIPv4Address bool ExecutionRoleArn string CloudWatchLogGroupName string PlatformVersion string }
ClusterConfig contains a Fargate cluster's configurable parameters.
type Pod ¶
type Pod struct {
// contains filtered or unexported fields
}
Pod is the representation of a Kubernetes pod in Fargate.
func NewPodFromTag ¶
NewPodFromTag creates a new pod identified by a tag.
Click to show internal directories.
Click to hide internal directories.