fakeintake

package
v0.0.0-...-36860d3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 20 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewECSFargateInstance

func NewECSFargateInstance(e aws.Environment, name string, option ...Option) (*fakeintake.Fakeintake, error)

Types

type Option

type Option = func(*Params) error

func WithCPU

func WithCPU(cpu int) Option

WithCPU sets the number of CPU units to allocate to the fakeintake

func WithImageURL

func WithImageURL(imageURL string) Option

WithImageURL sets the URL of the image to use to define the fakeintake

func WithLoadBalancer

func WithLoadBalancer() Option

WithLoadBalancer enable load balancer in front of the fakeintake

func WithMemory

func WithMemory(memory int) Option

WithMemory sets the amount (in MiB) of memory to allocate to the fakeintake

func WithoutDDDevForwarding

func WithoutDDDevForwarding() Option

type Params

type Params struct {
	LoadBalancerEnabled bool
	ImageURL            string
	CPU                 int
	Memory              int
	DDDevForwarding     bool
}

func NewParams

func NewParams(options ...Option) (*Params, error)

NewParams returns a new instance of Fakeintake Params

Jump to

Keyboard shortcuts

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