key_name_generator

package
v0.0.0-...-7e90556 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EdgeKeyNameGenerator

type EdgeKeyNameGenerator struct {
	Info *InstanceInfo
}

Fulfills the aws_utils/uploader.S3KeyNameGenerator interface.

func (*EdgeKeyNameGenerator) GetKeyName

func (gen *EdgeKeyNameGenerator) GetKeyName(filename string) string

type EnvInstanceFetcher

type EnvInstanceFetcher struct{}

func (*EnvInstanceFetcher) GetAutoScaleGroup

func (e *EnvInstanceFetcher) GetAutoScaleGroup() string

func (*EnvInstanceFetcher) GetClusterName

func (e *EnvInstanceFetcher) GetClusterName() string

func (*EnvInstanceFetcher) GetHost

func (e *EnvInstanceFetcher) GetHost() string

type InstanceInfo

type InstanceInfo struct {
	Service        string
	Cluster        string
	AutoScaleGroup string
	Node           string
	LoggingDir     string
}

func BuildInstanceInfo

func BuildInstanceInfo(fetcher InstanceInfoFetcher, serviceName string, loggingDir string) *InstanceInfo

We provide service name incase there are multiple types of services running on this box

type InstanceInfoFetcher

type InstanceInfoFetcher interface {
	GetHost() string
	GetClusterName() string
	GetAutoScaleGroup() string
}

type ProcessorKeyNameGenerator

type ProcessorKeyNameGenerator struct {
	Info *InstanceInfo
}

Fulfills the aws_utils/uploader.S3KeyNameGenerator interface.

func (*ProcessorKeyNameGenerator) GetKeyName

func (gen *ProcessorKeyNameGenerator) GetKeyName(filename string) string

type ReplayKeyNameGenerator

type ReplayKeyNameGenerator struct {
	Info   *InstanceInfo
	RunTag string
}

Fulfills the aws_utils/uploader.S3KeyNameGenerator interface.

func (*ReplayKeyNameGenerator) GetKeyName

func (gen *ReplayKeyNameGenerator) GetKeyName(filename string) string

Jump to

Keyboard shortcuts

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