robin

package
v0.0.0-...-9d0dce2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FixedPwhashSalt string // If set, this salt will be used for all pwhash's (only used for testing)
)

Functions

This section is empty.

Types

type FrontendNameBuilder

type FrontendNameBuilder interface {
	// Create the serviceName of the given task.
	// This name is used in the Key of the returned records.
	CreateServiceName(t *jobs.Task) (string, error)
	// Create the name used in the Service field of the returned records.
	CreateTargetServiceName(t *jobs.Task) (string, error)
	// Create the Domain field of selectors created for private-frontends.
	CreatePrivateDomainNames(t *jobs.Task) ([]string, error)
	// Create the Domain field of selectors created for instance specific private-frontends.
	CreateInstanceSpecificPrivateDomainNames(t *jobs.Task, instance uint) ([]string, error)
}

type FrontendRecord

type FrontendRecord struct {
	Record         api.FrontendRecord
	Key            string
	ProjectSetting string
}

func CreateFrontEndRecords

func CreateFrontEndRecords(t *jobs.Task, scalingGroup uint, publicOnly bool, nameBuilder FrontendNameBuilder) ([]FrontendRecord, error)

CreateFrontEndRecords create registration code for frontends to the given units to be used by the Robin loadbalancer.

Jump to

Keyboard shortcuts

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