network

package
v0.0.0-...-1d783ad Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2026 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNetworkConfigBuilder

func NewNetworkConfigBuilder(
	securityGroupsResolver SecurityGroupsResolver,
	networks apiv1.Networks,
	openstackConfig config.OpenstackConfig,
	cloudProps properties.CreateVM,
	logger boshlog.Logger,
) networkConfigBuilder

func NewNetworkService

func NewNetworkService(
	serviceClients utils.ServiceClients,
	networkingFacade NetworkingFacade,
	logger boshlog.Logger,
) networkService

func NewNetworkServiceBuilder

func NewNetworkServiceBuilder(openstackService openstack.OpenstackService, cpiConfig config.CpiConfig, logger boshlog.Logger) networkServiceBuilder

func NewSecurityGroupsResolver

func NewSecurityGroupsResolver(
	serviceClients utils.ServiceClients,
	networkingFacade NetworkingFacade,
	logger boshlog.Logger,
) securityGroupsResolver

Types

type NetworkService

type NetworkService interface {
	ConfigureVIPNetwork(
		instanceId string,
		networkConfig properties.NetworkConfig,
	) error

	GetNetworkConfiguration(
		networks apiv1.Networks,
		openstackConfig config.OpenstackConfig,
		cloudProps properties.CreateVM,
	) (properties.NetworkConfig, error)

	GetSubnetID(networkID string, ip string) (string, error)

	CreatePort(networkConfig properties.Network, securityGroups []string, cloudProperties properties.CreateVM) (ports.Port, error)

	GetPorts(
		instanceId string,
		defaultNetwork properties.Network,
		retryable bool,
	) ([]ports.Port, error)

	DeletePorts(
		ports []ports.Port,
	) error
}

type NetworkServiceBuilder

type NetworkServiceBuilder interface {
	Build() (NetworkService, error)
}

type NetworkingFacade

type NetworkingFacade interface {
	ListFloatingIps(serviceClient utils.RetryableServiceClient, opts floatingips.ListOpts) (pagination.Page, error)

	ExtractFloatingIPs(page pagination.Page) ([]floatingips.FloatingIP, error)

	UpdateFloatingIP(serviceClient utils.ServiceClient, floatingIpId string, updateOpts floatingips.UpdateOpts) (*floatingips.FloatingIP, error)

	CreatePort(serviceClient utils.ServiceClient, createOpts ports.CreateOpts) (*ports.Port, error)

	DeletePort(serviceClient utils.RetryableServiceClient, portID string) error

	ListPorts(client utils.RetryableServiceClient, opts ports.ListOpts) (pagination.Page, error)

	ExtractPorts(page pagination.Page) ([]ports.Port, error)

	GetSecurityGroups(serviceClient utils.RetryableServiceClient, id string) (*groups.SecGroup, error)

	ListSecurityGroups(serviceClient utils.RetryableServiceClient, opts groups.ListOpts) (pagination.Page, error)

	ExtractSecurityGroups(page pagination.Page) ([]groups.SecGroup, error)

	ListSubnets(serviceClient utils.RetryableServiceClient, opts subnets.ListOpts) (pagination.Page, error)

	ExtractSubnets(page pagination.Page) ([]subnets.Subnet, error)
}

func NewNetworkingFacade

func NewNetworkingFacade() NetworkingFacade

type SecurityGroupsResolver

type SecurityGroupsResolver interface {
	Resolve(securityGroupIDsAndNames []string) ([]string, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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