batch

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Code generated by generate-cached. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsClient

type AwsClient interface {
	GetRegion() ptypes.AwsRegion
	GetAccountID() ptypes.AwsAccountID
}

type BatchRepository

type BatchRepository struct {
	// contains filtered or unexported fields
}

func NewBatchRepository

func NewBatchRepository(ctx context.Context, client *v3.Client) *BatchRepository

func (*BatchRepository) GetRegion

func (r *BatchRepository) GetRegion() ptypes.AwsRegion

func (*BatchRepository) ListComputeEnvironmentAll

func (r *BatchRepository) ListComputeEnvironmentAll() ([]ComputeEnvironment, error)

cfg.ResourceTypeBatchComputeEnvironment

func (*BatchRepository) ListComputeEnvironmentByInput

func (r *BatchRepository) ListComputeEnvironmentByInput(query *batch.DescribeComputeEnvironmentsInput) ([]ComputeEnvironment, error)

func (*BatchRepository) ListJobQueueAll

func (r *BatchRepository) ListJobQueueAll() ([]JobQueue, error)

func (*BatchRepository) ListJobQueueByInput

func (r *BatchRepository) ListJobQueueByInput(query *batch.DescribeJobQueuesInput) ([]JobQueue, error)

func (*BatchRepository) WithCache added in v0.4.0

WithCache returns a BatchRepositoryCached that stores/retrieves results via the given DataCache. The cache namespace is set to "<accountID>:<region>".

type BatchRepositoryCached added in v0.4.0

type BatchRepositoryCached struct {
	// contains filtered or unexported fields
}

BatchRepositoryCached wraps BatchRepository and caches results of Get*/List* calls.

func (*BatchRepositoryCached) ListComputeEnvironmentAll added in v0.4.0

func (c *BatchRepositoryCached) ListComputeEnvironmentAll() ([]ComputeEnvironment, error)

ListComputeEnvironmentAll returns cached results when available, otherwise delegates to the underlying repository.

func (*BatchRepositoryCached) ListComputeEnvironmentByInput added in v0.4.0

func (c *BatchRepositoryCached) ListComputeEnvironmentByInput(query *awsbatch.DescribeComputeEnvironmentsInput) ([]ComputeEnvironment, error)

ListComputeEnvironmentByInput returns cached results when available, otherwise delegates to the underlying repository.

func (*BatchRepositoryCached) ListJobQueueAll added in v0.4.0

func (c *BatchRepositoryCached) ListJobQueueAll() ([]JobQueue, error)

ListJobQueueAll returns cached results when available, otherwise delegates to the underlying repository.

func (*BatchRepositoryCached) ListJobQueueByInput added in v0.4.0

func (c *BatchRepositoryCached) ListJobQueueByInput(query *awsbatch.DescribeJobQueuesInput) ([]JobQueue, error)

ListJobQueueByInput returns cached results when available, otherwise delegates to the underlying repository.

type ComputeEnvironment

type ComputeEnvironment struct {
	service.AbstractResource
	types.ComputeEnvironmentDetail
	Tags map[string]string
}

func NewComputeEnvironment

func NewComputeEnvironment(client AwsClient, cenv types.ComputeEnvironmentDetail) ComputeEnvironment

func (ComputeEnvironment) GetName

func (e ComputeEnvironment) GetName() string

func (ComputeEnvironment) GetTagValue

func (e ComputeEnvironment) GetTagValue(tag string) string

func (ComputeEnvironment) GetTags

func (e ComputeEnvironment) GetTags() map[string]string

type ComputeEnvironmentList

type ComputeEnvironmentList struct {
	Items []ComputeEnvironment
}

type JobQueue

type JobQueue struct {
	service.AbstractResource
	types.JobQueueDetail
	Tags map[string]string
}

func NewJobQueue

func NewJobQueue(client AwsClient, jobQueue types.JobQueueDetail) JobQueue

func (JobQueue) GetName

func (e JobQueue) GetName() string

func (JobQueue) GetTagValue

func (e JobQueue) GetTagValue(tag string) string

func (JobQueue) GetTags

func (e JobQueue) GetTags() map[string]string

type JobQueueList

type JobQueueList struct {
	Items []JobQueue
}

Jump to

Keyboard shortcuts

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