aci

package
v0.0.0-...-aca0140 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApicClient

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

func NewApicClient

func NewApicClient(host, user, password, privateKey string) (*ApicClient, error)

func (*ApicClient) AddTagAnnotation

func (ac *ApicClient) AddTagAnnotation(key, value, parentDn string) error

func (*ApicClient) AddTagAnnotationToEpg

func (ac *ApicClient) AddTagAnnotationToEpg(name, appName, tenantName, key, value string) error

Add Annotation (key=value) to the EPG object

func (*ApicClient) AddTagAnnotationToFilter

func (ac *ApicClient) AddTagAnnotationToFilter(name, tenantName, key, value string) error

Add Annotation (key=value) to the EPG object

func (*ApicClient) ApplicationProfileExists

func (ac *ApicClient) ApplicationProfileExists(name, tenantName string) (bool, error)

func (*ApicClient) ConsumeContract

func (ac *ApicClient) ConsumeContract(epgName, appName, tenantName, conName string) error

Contract in the same tenant

func (*ApicClient) CreateApplicationProfile

func (ac *ApicClient) CreateApplicationProfile(name, description, tenantName string) error

Application Profile function

func (*ApicClient) CreateContract

func (ac *ApicClient) CreateContract(tenantName, name string, filters []string) error

Contract functions

func (*ApicClient) CreateEndpointGroup

func (ac *ApicClient) CreateEndpointGroup(name, description, appName, tenantName, bdName, vmmName string) error

Endpoint Groups functions

func (*ApicClient) CreateFilterAndFilterEntry

func (ac *ApicClient) CreateFilterAndFilterEntry(tenantName, name, eth, ip string, port int) error

func (*ApicClient) CreateTenant

func (ac *ApicClient) CreateTenant(name, description string) error

Tenant Function

func (*ApicClient) DeleteApplicationProfile

func (ac *ApicClient) DeleteApplicationProfile(name, tenantName string) error

func (*ApicClient) DeleteContract

func (ac *ApicClient) DeleteContract(tenantName, name string) error

func (*ApicClient) DeleteContractConsumer

func (ac *ApicClient) DeleteContractConsumer(epgName, appName, tenantName, conName string) error

func (*ApicClient) DeleteContractProvider

func (ac *ApicClient) DeleteContractProvider(epgName, appName, tenantName, conName string) error

func (*ApicClient) DeleteEndpointGroup

func (ac *ApicClient) DeleteEndpointGroup(name, appName, tenantName string) error

func (*ApicClient) DeleteFilter

func (ac *ApicClient) DeleteFilter(tenantName, name string) error

func (*ApicClient) DeleteFilterFromSubjectContract

func (ac *ApicClient) DeleteFilterFromSubjectContract(subjectName, tenantName, filter string) error

func (*ApicClient) DeleteTenant

func (ac *ApicClient) DeleteTenant(name string) error

func (*ApicClient) EmptyApplicationProfile

func (ac *ApicClient) EmptyApplicationProfile(name, tenantName string) (bool, error)

func (*ApicClient) EpgExists

func (ac *ApicClient) EpgExists(name, appName, tenantName string) (bool, error)

func (*ApicClient) FilterExists

func (ac *ApicClient) FilterExists(name, tenantName string) (bool, error)

func (*ApicClient) GetAnnotationsEpg

func (ac *ApicClient) GetAnnotationsEpg(name, appName, tenantName string) ([]string, error)

func (*ApicClient) GetContractFilters

func (ac *ApicClient) GetContractFilters(contractName, tenantName string) ([]string, error)

func (*ApicClient) GetContracts

func (ac *ApicClient) GetContracts(epgName, appName, tenantName string) (map[string][]string, error)

func (*ApicClient) GetEpgWithAnnotation

func (ac *ApicClient) GetEpgWithAnnotation(appName, tenantName, key string) ([]string, error)

Get list of EPG with an annotation with specific key

func (*ApicClient) GetFilterWithAnnotation

func (ac *ApicClient) GetFilterWithAnnotation(tenantName, key string) ([]string, error)

Get list of Filters with an annotation with specific key

func (*ApicClient) InheritContractFromMaster

func (ac *ApicClient) InheritContractFromMaster(epgName, appName, tenantName, appMasterName, epgMasterName string) error

func (*ApicClient) ProvideContract

func (ac *ApicClient) ProvideContract(epgName, appName, tenantName, conName string) error

Contract in the same tenant

func (*ApicClient) RemoveTagAnnotation

func (ac *ApicClient) RemoveTagAnnotation(name, appName, tenantName, key string) error

Remove Annotation (key=value) to the EPG object

type ApicClientMocks

type ApicClientMocks struct {
	// contains filtered or unexported fields
}
var (
	ApicMockClient ApicClientMocks
)

func (*ApicClientMocks) AddTagAnnotationToEpg

func (ac *ApicClientMocks) AddTagAnnotationToEpg(name, appName, tenantName, key, value string) error

func (*ApicClientMocks) AddTagAnnotationToFilter

func (ac *ApicClientMocks) AddTagAnnotationToFilter(name, tenantName, key, value string) error

func (*ApicClientMocks) ApplicationProfileExists

func (ac *ApicClientMocks) ApplicationProfileExists(name, tenantName string) (bool, error)

func (*ApicClientMocks) ConsumeContract

func (ac *ApicClientMocks) ConsumeContract(epgName, appName, tenantName, conName string) error

Contract in the same tenant

func (*ApicClientMocks) CreateApplicationProfile

func (ac *ApicClientMocks) CreateApplicationProfile(name, description, tenantName string) error

func (*ApicClientMocks) CreateContract

func (ac *ApicClientMocks) CreateContract(tenantName, name string, filters []string) error

func (*ApicClientMocks) CreateEndpointGroup

func (ac *ApicClientMocks) CreateEndpointGroup(name, description, appName, tenantName, bdName, vmmName string) error

func (*ApicClientMocks) CreateFilterAndFilterEntry

func (ac *ApicClientMocks) CreateFilterAndFilterEntry(tenantName, name, eth, ip string, port int) error

func (*ApicClientMocks) CreateTenant

func (ac *ApicClientMocks) CreateTenant(name, description string) error

func (*ApicClientMocks) DeleteApplicationProfile

func (ac *ApicClientMocks) DeleteApplicationProfile(name, tenantName string) error

func (*ApicClientMocks) DeleteContract

func (ac *ApicClientMocks) DeleteContract(tenantName, name string) error

func (*ApicClientMocks) DeleteContractConsumer

func (ac *ApicClientMocks) DeleteContractConsumer(epgName, appName, tenantName, conName string) error

func (*ApicClientMocks) DeleteContractProvider

func (ac *ApicClientMocks) DeleteContractProvider(epgName, appName, tenantName, conName string) error

func (*ApicClientMocks) DeleteEndpointGroup

func (ac *ApicClientMocks) DeleteEndpointGroup(name, appName, tenantName string) error

func (*ApicClientMocks) DeleteFilter

func (ac *ApicClientMocks) DeleteFilter(tenantName, name string) error

func (*ApicClientMocks) DeleteFilterFromSubjectContract

func (ac *ApicClientMocks) DeleteFilterFromSubjectContract(subjectName, tenantName, filter string) error

func (*ApicClientMocks) DeleteTenant

func (ac *ApicClientMocks) DeleteTenant(name string) error

func (*ApicClientMocks) EmptyApplicationProfile

func (ac *ApicClientMocks) EmptyApplicationProfile(name, tenantName string) (bool, error)

func (*ApicClientMocks) EpgExists

func (ac *ApicClientMocks) EpgExists(name, appName, tenantName string) (bool, error)

func (*ApicClientMocks) FilterExists

func (ac *ApicClientMocks) FilterExists(name, tenantName string) (bool, error)

func (*ApicClientMocks) GetAnnotationsEpg

func (ac *ApicClientMocks) GetAnnotationsEpg(name, appName, tenantName string) ([]string, error)

func (*ApicClientMocks) GetContractFilters

func (ac *ApicClientMocks) GetContractFilters(contractName, tenantName string) ([]string, error)

func (*ApicClientMocks) GetContracts

func (ac *ApicClientMocks) GetContracts(epgName, appName, tenantName string) (map[string][]string, error)

func (*ApicClientMocks) GetEpg

func (ac *ApicClientMocks) GetEpg(name, appName, tenantName string) endpointGroup

Function only available in the Mock

func (*ApicClientMocks) GetEpgWithAnnotation

func (ac *ApicClientMocks) GetEpgWithAnnotation(appName, tenantName, key string) ([]string, error)

func (*ApicClientMocks) GetFilterWithAnnotation

func (ac *ApicClientMocks) GetFilterWithAnnotation(tenantName, key string) ([]string, error)

func (*ApicClientMocks) InheritContractFromMaster

func (ac *ApicClientMocks) InheritContractFromMaster(epgName, appName, tenantName, appMasterName, epgMasterName string) error

func (*ApicClientMocks) ProvideContract

func (ac *ApicClientMocks) ProvideContract(epgName, appName, tenantName, conName string) error

Contract in the same tenant

func (*ApicClientMocks) RemoveTagAnnotation

func (ac *ApicClientMocks) RemoveTagAnnotation(name, appName, tenantName, key string) error

type ApicInterface

type ApicInterface interface {
	CreateTenant(name, description string) error
	DeleteTenant(name string) error
	CreateApplicationProfile(name, description, tenantName string) error
	DeleteApplicationProfile(name, tenantName string) error
	ApplicationProfileExists(name, tenantName string) (bool, error)
	EmptyApplicationProfile(name, tenantName string) (bool, error)
	CreateEndpointGroup(name, description, appName, tenantName, bdName, vmmName string) error
	DeleteEndpointGroup(name, appName, tenantName string) error
	CreateFilterAndFilterEntry(tenantName, name, eth, ip string, port int) error
	DeleteFilter(tenantName, name string) error
	FilterExists(name, tenantName string) (bool, error)
	CreateContract(tenantName, name string, filters []string) error
	DeleteContract(tenantName, name string) error
	InheritContractFromMaster(epgName, appName, tenantName, appMasterName, epgMasterName string) error
	EpgExists(name, appName, tenantName string) (bool, error)
	AddTagAnnotationToEpg(name, appName, tenantName, key, value string) error
	RemoveTagAnnotation(name, appName, tenantName, key string) error
	GetEpgWithAnnotation(appName, tenantName, key string) ([]string, error)
	GetAnnotationsEpg(name, appName, tenantName string) ([]string, error)
	AddTagAnnotationToFilter(name, tenantName, key, value string) error
	GetFilterWithAnnotation(tenantName, key string) ([]string, error)
	ConsumeContract(epgName, appName, tenantName, conName string) error
	ProvideContract(epgName, appName, tenantName, conName string) error
	DeleteContractConsumer(epgName, appName, tenantName, conName string) error
	DeleteContractProvider(epgName, appName, tenantName, conName string) error
	GetContractFilters(contractName, tenantName string) ([]string, error)
	DeleteFilterFromSubjectContract(subjectName, tenantName, filter string) error
	GetContracts(epgName, appName, tenantName string) (map[string][]string, error)
}

Jump to

Keyboard shortcuts

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