app

package
v0.0.0-...-acc184e Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ClusterURLPreFix - prefix for the ansible service broker.
	ClusterURLPreFix = "/osb"
	// MsgBufferSize - The buffer for the message channel.
	MsgBufferSize = 20
	// SubscriberTimeout - the amount of time in seconds that subscribers have to complete their action
	SubscriberTimeout = 3
)

Variables

View Source
var (
	// Scheme - the runtime scheme
	Scheme = runtime.NewScheme()
	// Codecs -k8s codecs for the scheme
	Codecs = serializer.NewCodecFactory(Scheme)
)

Functions

This section is empty.

Types

type App

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

App - All the application pieces that are installed.

func CreateApp

func CreateApp(args Args, regs []registries.Registry) App

CreateApp - Creates the application with the given registries if they are passed in, otherwise it will read them from the configuration.

func (*App) Recover

func (a *App) Recover()

Recover - Recover the application TODO: Make this a go routine once we have a strong and well tested recovery sequence.

func (*App) Start

func (a *App) Start()

Start - Will start the application to listen on the specified port.

type Args

type Args struct {
	ConfigFile string `short:"c" long:"config" description:"Config File" default:"/etc/ansible-service-broker/config.yaml"`
	Version    bool   `short:"v" long:"version" description:"Print version information"`
}

Args - Command line arguments for the ansible service broker.

func CreateArgs

func CreateArgs() (Args, error)

CreateArgs - Will return the arguments that were passed in to the application

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳