config

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoEgress = NoResource
)
View Source
const (
	// NoResource signals that the broker hasn't been found.
	NoResource = -1
)

Variables

This section is empty.

Functions

func AddOrUpdateResourceConfig added in v0.18.0

func AddOrUpdateResourceConfig(contract *contract.Contract, resource *contract.Resource, index int, logger *zap.Logger)

AddOrUpdateResourceConfig adds or updates the given resourceConfig to the given resources at the specified index.

func ContentModeFromString added in v0.18.0

func ContentModeFromString(mode string) contract.ContentMode

ContentModeFromString returns the ContentMode from the given string.

func DeleteResource added in v0.18.0

func DeleteResource(ct *contract.Contract, index int)

DeleteResource deletes the resource at the given index from Resources.

func FindEgress added in v0.18.0

func FindEgress(egresses []*contract.Egress, egress types.UID) int

FindEgress finds the egress with the given UID in the given egresses list.

func FindResource added in v0.18.0

func FindResource(contract *contract.Contract, resource types.UID) int

FindResource finds the resource with the given UID in the given resources list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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