objApi

package
v0.0.0-11-12-2015.00-5... Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2015 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAppNw

func CreateAppNw(app *contivModel.App) error

CreateAppNw Fill in the Nw spec and launch the nw infra

func CreateDefaultTenant

func CreateDefaultTenant()

CreateDefaultTenant creates the default tenant

func DeleteAppNw

func DeleteAppNw(app *contivModel.App) error

DeleteAppNw deletes the app profile from infra

Types

type APIController

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

APIController stores the api controller state

func NewAPIController

func NewAPIController(router *mux.Router) *APIController

NewAPIController creates a new controller

func (*APIController) AppCreate

func (ac *APIController) AppCreate(app *contivModel.App) error

AppCreate creates app state

func (*APIController) AppDelete

func (ac *APIController) AppDelete(app *contivModel.App) error

AppDelete delete the app

func (*APIController) AppUpdate

func (ac *APIController) AppUpdate(app, params *contivModel.App) error

AppUpdate updates app

func (*APIController) EndpointGroupCreate

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

EndpointGroupCreate creates end point group

func (*APIController) EndpointGroupDelete

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

EndpointGroupDelete deletes end point group

func (*APIController) EndpointGroupUpdate

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

EndpointGroupUpdate updates endpoint group

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) GlobalUpdate

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

GlobalUpdate updates global state

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) 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) 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) ServiceCreate

func (ac *APIController) ServiceCreate(service *contivModel.Service) error

ServiceCreate creates service

func (*APIController) ServiceDelete

func (ac *APIController) ServiceDelete(service *contivModel.Service) error

ServiceDelete deletes service

func (*APIController) ServiceInstanceCreate

func (ac *APIController) ServiceInstanceCreate(serviceInstance *contivModel.ServiceInstance) error

ServiceInstanceCreate creates a service instance

func (*APIController) ServiceInstanceDelete

func (ac *APIController) ServiceInstanceDelete(serviceInstance *contivModel.ServiceInstance) error

ServiceInstanceDelete deletes a service instance

func (*APIController) ServiceInstanceUpdate

func (ac *APIController) ServiceInstanceUpdate(serviceInstance, params *contivModel.ServiceInstance) error

ServiceInstanceUpdate updates a service instance

func (*APIController) ServiceUpdate

func (ac *APIController) ServiceUpdate(service, params *contivModel.Service) error

ServiceUpdate updates service

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) TenantUpdate

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

TenantUpdate updates a tenant

Jump to

Keyboard shortcuts

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