github.com/juju/juju@v0.0.0-20240327075706-a90865de2538/worker/caasfirewallersidecar/broker.go (about) 1 // Copyright 2020 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package caasfirewallersidecar 5 6 import ( 7 "github.com/juju/juju/caas" 8 ) 9 10 // CAASBroker exposes CAAS broker functionality to a worker. 11 type CAASBroker interface { 12 Application(string, caas.DeploymentType) caas.Application 13 } 14 15 // PortMutator exposes CAAS application functionality to a worker. 16 type PortMutator interface { 17 UpdatePorts(ports []caas.ServicePort, updateContainerPorts bool) error 18 } 19 20 // ServiceUpdater exposes CAAS application functionality to a worker. 21 type ServiceUpdater interface { 22 UpdateService(caas.ServiceParam) error 23 }