batch

package
v0.0.0-...-5db00e0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "batch",
	Short: "Utilities for managing funnel resources on AWS Batch",
}

Cmd represents the aws batch command

Functions

This section is empty.

Types

type AssumeRolePolicy

type AssumeRolePolicy struct {
	Version   string
	Statement []RoleStatement
}

AssumeRolePolicy represents an AWS policy

type ComputeEnvConfig

type ComputeEnvConfig struct {
	Name             string
	MinVCPUs         int64
	MaxVCPUs         int64
	SecurityGroupIds []string
	Subnets          []string
	Tags             map[string]string
	ServiceRole      string
	InstanceRole     string
	InstanceTypes    []string
}

ComputeEnvConfig represents configuration of the AWS Batch Compute Environment.

type Config

type Config struct {
	AWS          config.AWSConfig
	ComputeEnv   ComputeEnvConfig
	JobQueue     JobQueueConfig
	JobDef       JobDefinitionConfig
	JobRole      JobRoleConfig
	FunnelWorker config.Worker
}

Config represents configuration of the AWS proxy, including the compute environment, job queue, and base job definition.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns default configuration of for AWS Batch resource creation.

type JobDefinitionConfig

type JobDefinitionConfig struct {
	Name       string
	Image      string
	MemoryMiB  int64
	VCPUs      int64
	JobRoleArn string
}

JobDefinitionConfig represents configuration of the AWS Batch Job Definition

type JobQueueConfig

type JobQueueConfig struct {
	Name        string
	Priority    int64
	ComputeEnvs []string
}

JobQueueConfig represents configuration of the AWS Batch Job Queue.

type JobRoleConfig

type JobRoleConfig struct {
	RoleName           string
	S3PolicyName       string
	DynamoDBPolicyName string
	Policies           struct {
		AssumeRole AssumeRolePolicy
		S3         Policy
		DynamoDB   Policy
	}
}

JobRoleConfig represents configuration of the AWS Batch JobRole.

type Policy

type Policy struct {
	Version   string
	Statement []Statement
}

Policy represents an AWS policy

type RoleStatement

type RoleStatement struct {
	Sid       string
	Effect    string
	Action    string
	Principal map[string]string
}

RoleStatement represents an AWS policy statement

type Statement

type Statement struct {
	Effect   string
	Action   []string
	Resource string
}

Statement represents an AWS policy statement

Jump to

Keyboard shortcuts

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