Documentation ¶
Index ¶
- Constants
- func AddOrUpdateResourceConfig(contract *contract.Contract, resource *contract.Resource, index int, ...)
- func ContentModeFromString(mode string) contract.ContentMode
- func DeleteResource(ct *contract.Contract, index int)
- func FindEgress(egresses []*contract.Egress, egress types.UID) int
- func FindResource(contract *contract.Contract, resource types.UID) int
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
DeleteResource deletes the resource at the given index from Resources.
func FindEgress ¶ added in v0.18.0
FindEgress finds the egress with the given UID in the given egresses list.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.