Documentation ¶
Overview ¶
Package cfnetworkingaction contains the business logic for the cf networking commands.
Index ¶
- type Actor
- func (actor Actor) AddNetworkPolicy(srcSpaceGUID, srcAppName, destSpaceGUID, destAppName, protocol string, ...) (Warnings, error)
- func (actor Actor) NetworkPoliciesBySpace(spaceGUID string) ([]Policy, Warnings, error)
- func (actor Actor) NetworkPoliciesBySpaceAndAppName(spaceGUID string, srcAppName string) ([]Policy, Warnings, error)
- func (actor Actor) RemoveNetworkPolicy(srcSpaceGUID, srcAppName, destSpaceGUID, destAppName, protocol string, ...) (Warnings, error)
- type CloudControllerClient
- type NetworkingClient
- type Policy
- type Warnings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor struct { NetworkingClient NetworkingClient CloudControllerClient CloudControllerClient }
Actor handles all business logic for cf networking operations.
func NewActor ¶
func NewActor(networkingClient NetworkingClient, ccClient CloudControllerClient) *Actor
NewActor returns a new actor.
func (Actor) AddNetworkPolicy ¶
func (Actor) NetworkPoliciesBySpace ¶
func (Actor) NetworkPoliciesBySpaceAndAppName ¶
type CloudControllerClient ¶
type CloudControllerClient interface { GetApplicationByNameAndSpace(appName string, spaceGUID string) (resources.Application, ccv3.Warnings, error) GetApplications(query ...ccv3.Query) ([]resources.Application, ccv3.Warnings, error) GetOrganizations(query ...ccv3.Query) ([]resources.Organization, ccv3.Warnings, error) GetSpaces(query ...ccv3.Query) ([]ccv3.Space, ccv3.IncludedResources, ccv3.Warnings, error) }
type NetworkingClient ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.