model

package
v0.0.0-...-b0a6671 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spp

type Spp struct {
	V1 *sppv1.Spp
}

func (*Spp) BaseUrl

func (spp *Spp) BaseUrl() string

func (*Spp) BeforeDeleteNfv

func (spp *Spp) BeforeDeleteNfv(secId string)

func (*Spp) CheckMirrorsRunning

func (spp *Spp) CheckMirrorsRunning() bool

func (*Spp) CheckNfvsRunning

func (spp *Spp) CheckNfvsRunning() bool

check if all nfvs are runnning using REST API

func (*Spp) CheckReady

func (spp *Spp) CheckReady() bool

func (*Spp) CheckRunning

func (spp *Spp) CheckRunning(kind string, retry int) bool

check if procces(ctl or primary) is runnning using REST API

func (*Spp) CheckVfsRunning

func (spp *Spp) CheckVfsRunning() bool

func (*Spp) Delete

func (spp *Spp) Delete(kind string, secId string) bool

Delete calles SPP API to tell ctl the pod is deleted

func (*Spp) GetMirrorSecIdsFromCR

func (spp *Spp) GetMirrorSecIdsFromCR() []string

func (*Spp) GetNfvSecIdsFromCR

func (spp *Spp) GetNfvSecIdsFromCR() []string

GetSecIdsFromCR makes secIds from index of cr.nfvs

func (*Spp) GetPcapSecIdsFromCR

func (spp *Spp) GetPcapSecIdsFromCR() []string

GetSecIdsFromCR makes secIds from index of cr.nfvs

func (*Spp) GetProcesses

func (spp *Spp) GetProcesses() ([]sppv1.SppProcessResponse, bool)

Spp running check funcionts

get processes using REST API

func (*Spp) GetVfSecIdsFromCR

func (spp *Spp) GetVfSecIdsFromCR() []string

func (*Spp) MakeNfvForward

func (spp *Spp) MakeNfvForward(secId string, action string) bool

make nfv forward

func (*Spp) NewApp

func (spp *Spp) NewApp(index int) *corev1.Pod

newPodForApp returns an app pod with the same name/namespace as the cr

func (*Spp) NewCtl

func (spp *Spp) NewCtl() (*corev1.Pod, *corev1.Service)

Spp Ctl

NewCtl makes a ctl pod and service using CR from yaml

func (*Spp) NewMirror

func (spp *Spp) NewMirror(index int) *corev1.Pod

New makes mirror pod

func (*Spp) NewNfv

func (spp *Spp) NewNfv(index int) *corev1.Pod

Spp Nfv

NewNfv makes a nfv pod from cr nfvs using index

func (*Spp) NewPcap

func (spp *Spp) NewPcap(index int) *corev1.Pod

Spp PCAP

NewPcap makes a pcap pod from cr pcaps using index

func (*Spp) NewPrimary

func (spp *Spp) NewPrimary() *corev1.Pod

Spp Primary

NewPrimary makes a primary pod using CR from yaml

func (*Spp) NewVf

func (spp *Spp) NewVf(index int) *corev1.Pod

New makes vf pod

func (*Spp) OldNfvs

func (spp *Spp) OldNfvs() []string

OldNfvs make secId which does not exist in cr by comparing cr and NfvSecIdsIndexMap

func (*Spp) OldPcaps

func (spp *Spp) OldPcaps() []string

func (*Spp) Olds

func (spp *Spp) Olds(kind string) []string

func (*Spp) Reconcile

func (spp *Spp) Reconcile(secId string, kind string, Components []sppv1.ComponentOption, ClassifierTable []sppv1.ClassifierTableOption) *sppv1.SppVfResponse

func (spp *Spp) Reconcile(secId string, vf *sppv1.SppVf) {

func (*Spp) ReconcileNfv

func (spp *Spp) ReconcileNfv(secId string, nfv *sppv1.SppNfv) *sppv1.SppNfvResponse

func (*Spp) ReconcilePcap

func (spp *Spp) ReconcilePcap(secId string, pcap *sppv1.SppPcap) *sppv1.SppPcapResponse

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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