objApi

package
v0.0.0-...-8dd92da Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAppNw

func CreateAppNw(app *contivModel.AppProfile) error

CreateAppNw Fill in the Nw spec and launch the nw infra

func DeleteAppNw

func DeleteAppNw(app *contivModel.AppProfile) error

DeleteAppNw deletes the app profile from infra

func GetNetprofileKey

func GetNetprofileKey(tenantName, profileName string) string

GetNetprofileKey gets the netprofile key.

func GetpolicyKey

func GetpolicyKey(tenantName, policyName string) string

GetpolicyKey will return the policy key

Types

type APIController

type APIController struct {
	// contains filtered or unexported fields
}

APIController stores the api controller state

func NewAPIController

func NewAPIController(router *mux.Router, objdbClient objdb.API, configs *APIControllerConfig) *APIController

NewAPIController creates a new controller

func (*APIController) AciGwCreate

func (ac *APIController) AciGwCreate(aci *contivModel.AciGw) error

AciGwCreate creates aci state

func (*APIController) AciGwDelete

func (ac *APIController) AciGwDelete(aci *contivModel.AciGw) error

AciGwDelete deletes aci state

func (*APIController) AciGwGetOper

func (ac *APIController) AciGwGetOper(op *contivModel.AciGwInspect) error

AciGwGetOper provides operational info for the aci object

func (*APIController) AciGwUpdate

func (ac *APIController) AciGwUpdate(aci, params *contivModel.AciGw) error

AciGwUpdate updates aci state

func (*APIController) AppProfileCreate

func (ac *APIController) AppProfileCreate(prof *contivModel.AppProfile) error

AppProfileCreate creates app profile state

func (*APIController) AppProfileDelete

func (ac *APIController) AppProfileDelete(prof *contivModel.AppProfile) error

AppProfileDelete delete the app

func (*APIController) AppProfileUpdate

func (ac *APIController) AppProfileUpdate(oldProf, newProf *contivModel.AppProfile) error

AppProfileUpdate updates app

func (*APIController) BgpCreate

func (ac *APIController) BgpCreate(bgpCfg *contivModel.Bgp) error

BgpCreate add bgp neighbor

func (*APIController) BgpDelete

func (ac *APIController) BgpDelete(bgpCfg *contivModel.Bgp) error

BgpDelete deletes bgp neighbor

func (*APIController) BgpGetOper

func (ac *APIController) BgpGetOper(bgp *contivModel.BgpInspect) error

BgpGetOper inspects the oper state of bgp object

func (*APIController) BgpUpdate

func (ac *APIController) BgpUpdate(oldbgpCfg *contivModel.Bgp, NewbgpCfg *contivModel.Bgp) error

BgpUpdate updates bgp config

func (*APIController) EndpointGetOper

func (ac *APIController) EndpointGetOper(endpoint *contivModel.EndpointInspect) error

EndpointGetOper retrieves glboal operational information

func (*APIController) EndpointGroupCreate

func (ac *APIController) EndpointGroupCreate(endpointGroup *contivModel.EndpointGroup) error

EndpointGroupCreate creates Endpoint Group

func (*APIController) EndpointGroupDelete

func (ac *APIController) EndpointGroupDelete(endpointGroup *contivModel.EndpointGroup) error

EndpointGroupDelete deletes end point group

func (*APIController) EndpointGroupGetOper

func (ac *APIController) EndpointGroupGetOper(endpointGroup *contivModel.EndpointGroupInspect) error

EndpointGroupGetOper inspects endpointGroup

func (*APIController) EndpointGroupUpdate

func (ac *APIController) EndpointGroupUpdate(endpointGroup, params *contivModel.EndpointGroup) error

EndpointGroupUpdate updates endpoint group

func (*APIController) ExtContractsGroupCreate

func (ac *APIController) ExtContractsGroupCreate(contractsGroup *contivModel.ExtContractsGroup) error

ExtContractsGroupCreate creates a new group of external contracts

func (*APIController) ExtContractsGroupDelete

func (ac *APIController) ExtContractsGroupDelete(contractsGroup *contivModel.ExtContractsGroup) error

ExtContractsGroupDelete deletes an existing external contracts group

func (*APIController) ExtContractsGroupUpdate

func (ac *APIController) ExtContractsGroupUpdate(contractsGroup, params *contivModel.ExtContractsGroup) error

ExtContractsGroupUpdate updates an existing group of contract sets

func (*APIController) GlobalCreate

func (ac *APIController) GlobalCreate(global *contivModel.Global) error

GlobalCreate creates global state

func (*APIController) GlobalDelete

func (ac *APIController) GlobalDelete(global *contivModel.Global) error

GlobalDelete is not supported

func (*APIController) GlobalGetOper

func (ac *APIController) GlobalGetOper(global *contivModel.GlobalInspect) error

GlobalGetOper retrieves glboal operational information

func (*APIController) GlobalUpdate

func (ac *APIController) GlobalUpdate(global, params *contivModel.Global) error

GlobalUpdate updates global state

func (*APIController) NetprofileCreate

func (ac *APIController) NetprofileCreate(netProfile *contivModel.Netprofile) error

NetprofileCreate creates the network rule

func (*APIController) NetprofileDelete

func (ac *APIController) NetprofileDelete(netProfile *contivModel.Netprofile) error

NetprofileDelete deletes netprofile

func (*APIController) NetprofileUpdate

func (ac *APIController) NetprofileUpdate(profile, params *contivModel.Netprofile) error

NetprofileUpdate updates the netprofile

func (*APIController) NetworkCreate

func (ac *APIController) NetworkCreate(network *contivModel.Network) error

NetworkCreate creates network

func (*APIController) NetworkDelete

func (ac *APIController) NetworkDelete(network *contivModel.Network) error

NetworkDelete deletes network

func (*APIController) NetworkGetOper

func (ac *APIController) NetworkGetOper(network *contivModel.NetworkInspect) error

NetworkGetOper inspects network

func (*APIController) NetworkUpdate

func (ac *APIController) NetworkUpdate(network, params *contivModel.Network) error

NetworkUpdate updates network

func (*APIController) PolicyCreate

func (ac *APIController) PolicyCreate(policy *contivModel.Policy) error

PolicyCreate creates policy

func (*APIController) PolicyDelete

func (ac *APIController) PolicyDelete(policy *contivModel.Policy) error

PolicyDelete deletes policy

func (*APIController) PolicyGetOper

func (ac *APIController) PolicyGetOper(policy *contivModel.PolicyInspect) error

PolicyGetOper inspects policy

func (*APIController) PolicyUpdate

func (ac *APIController) PolicyUpdate(policy, params *contivModel.Policy) error

PolicyUpdate updates policy

func (*APIController) RuleCreate

func (ac *APIController) RuleCreate(rule *contivModel.Rule) error

RuleCreate Creates the rule within a policy

func (*APIController) RuleDelete

func (ac *APIController) RuleDelete(rule *contivModel.Rule) error

RuleDelete deletes the rule within a policy

func (*APIController) RuleUpdate

func (ac *APIController) RuleUpdate(rule, params *contivModel.Rule) error

RuleUpdate updates the rule within a policy

func (*APIController) ServiceLBCreate

func (ac *APIController) ServiceLBCreate(serviceCfg *contivModel.ServiceLB) error

ServiceLBCreate creates service object

func (*APIController) ServiceLBDelete

func (ac *APIController) ServiceLBDelete(serviceCfg *contivModel.ServiceLB) error

ServiceLBDelete deletes service object

func (*APIController) ServiceLBGetOper

func (ac *APIController) ServiceLBGetOper(serviceLB *contivModel.ServiceLBInspect) error

ServiceLBGetOper inspects the oper state of service lb object

func (*APIController) ServiceLBUpdate

func (ac *APIController) ServiceLBUpdate(oldServiceCfg *contivModel.ServiceLB, serviceCfg *contivModel.ServiceLB) error

ServiceLBUpdate updates service object

func (*APIController) TenantCreate

func (ac *APIController) TenantCreate(tenant *contivModel.Tenant) error

TenantCreate creates a tenant

func (*APIController) TenantDelete

func (ac *APIController) TenantDelete(tenant *contivModel.Tenant) error

TenantDelete deletes a tenant

func (*APIController) TenantGetOper

func (ac *APIController) TenantGetOper(tenant *contivModel.TenantInspect) error

TenantGetOper inspects tenant

func (*APIController) TenantUpdate

func (ac *APIController) TenantUpdate(tenant, params *contivModel.Tenant) error

TenantUpdate updates a tenant

type APIControllerConfig

type APIControllerConfig struct {
	NetPrivateCIDR string
	NetARPMode     string
	NetVLANRange   string
	NetVXLANRange  string
	NetForwardMode string
	NetInfraType   string
}

APIControllerConfig cofig options for API controller

type BgpInspect

type BgpInspect struct {
	Peers []*bgpconf.Neighbor
	Dsts  []string
}

BgpInspect is bgp inspect struct

Jump to

Keyboard shortcuts

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