Documentation
¶
Overview ¶
Code generated by generate-cached. DO NOT EDIT.
Index ¶
- type AwsClient
- type BatchRepository
- func (r *BatchRepository) GetRegion() ptypes.AwsRegion
- func (r *BatchRepository) ListComputeEnvironmentAll() ([]ComputeEnvironment, error)
- func (r *BatchRepository) ListComputeEnvironmentByInput(query *batch.DescribeComputeEnvironmentsInput) ([]ComputeEnvironment, error)
- func (r *BatchRepository) ListJobQueueAll() ([]JobQueue, error)
- func (r *BatchRepository) ListJobQueueByInput(query *batch.DescribeJobQueuesInput) ([]JobQueue, error)
- func (r *BatchRepository) WithCache(dc *cache.DataCache) *BatchRepositoryCached
- type BatchRepositoryCached
- func (c *BatchRepositoryCached) ListComputeEnvironmentAll() ([]ComputeEnvironment, error)
- func (c *BatchRepositoryCached) ListComputeEnvironmentByInput(query *awsbatch.DescribeComputeEnvironmentsInput) ([]ComputeEnvironment, error)
- func (c *BatchRepositoryCached) ListJobQueueAll() ([]JobQueue, error)
- func (c *BatchRepositoryCached) ListJobQueueByInput(query *awsbatch.DescribeJobQueuesInput) ([]JobQueue, error)
- type ComputeEnvironment
- type ComputeEnvironmentList
- type JobQueue
- type JobQueueList
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
func (r *BatchRepository) WithCache(dc *cache.DataCache) *BatchRepositoryCached
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) GetTagValue ¶
type JobQueueList ¶
type JobQueueList struct {
Items []JobQueue
}