model

package
v0.0.0-...-7c77b90 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: Apache-2.0 Copyright (c) 2021 Intel Corporation

Index

Constants

View Source
const ChainingAPIVersion = "k8s.plugin.opnfv.org/v1alpha1"

ChainingAPIVersion is the kubernetes version of a network chain custom resource

View Source
const ChainingApp = "network-chain-intents"

Name of 'app' to create for Network Chaining CRs in the EMCO AppContext

View Source
const ChainingKind = "NetworkChaining"

ChainingKind is the Kind string for a network chain

View Source
const LeftChainEnd = "left"

Chain constants

View Source
const RightChainEnd = "right"
View Source
const RoutingChainType = "Routing"

RoutingChainType is currently only defined chaining type

Variables

This section is empty.

Functions

This section is empty.

Types

type CrChain

type CrChain struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
}

CrChain is the structure for the Network Chain Custom Resource

type Metadata

type Metadata struct {
	Name        string `json:"name" yaml:"name"`
	Description string `json:"description" yaml:"-"`
	UserData1   string `json:"userData1" yaml:"-"`
	UserData2   string `json:"userData2" yaml:"-"`
}

type RouteSpec

type RouteSpec struct {
	LeftNetwork  []RoutingNetwork `json:"leftNetwork"`
	RightNetwork []RoutingNetwork `json:"rightNetwork"`
	NetworkChain string           `json:"networkChain"`
	Namespace    string           `json:"namespace"`
}

RouteSpec contains the routing specificaiton of a network chain

type RoutingNetwork

type RoutingNetwork struct {
	NetworkName string `json:"networkName"`
	GatewayIP   string `json:"gatewayIp"`
	Subnet      string `json:"subnet"`
}

RoutingNetwork contains the route networkroute network details for en element of a network chain

type SfcClientSelectorIntent

type SfcClientSelectorIntent struct {
	Metadata Metadata                    `json:"metadata" yaml:"metadata"`
	Spec     SfcClientSelectorIntentSpec `json:"spec" yaml:"spec"`
}

SfcClientSelectorIntent defines the high level structure of a network chain document

type SfcClientSelectorIntentByEndKey

type SfcClientSelectorIntentByEndKey struct {
	Project             string `json:"project"`
	CompositeApp        string `json:"compositeapp"`
	CompositeAppVersion string `json:"compositeappversion"`
	DigName             string `json:"deploymentintentgroup"`
	NetControlIntent    string `json:"netcontrolintent"`
	SfcIntent           string `json:"sfcintent"`
	ChainEnd            string `json:"chainEnd"`
}

SfcClientSelectorIntentByEndKey is the key structure that is used in the database

type SfcClientSelectorIntentKey

type SfcClientSelectorIntentKey struct {
	Project                 string `json:"project"`
	CompositeApp            string `json:"compositeapp"`
	CompositeAppVersion     string `json:"compositeappversion"`
	DigName                 string `json:"deploymentintentgroup"`
	NetControlIntent        string `json:"netcontrolintent"`
	SfcIntent               string `json:"sfcintent"`
	SfcClientSelectorIntent string `json:"sfcclientselectorintent"`
}

SfcClientSelectorIntentKey is the key structure that is used in the database

type SfcClientSelectorIntentSpec

type SfcClientSelectorIntentSpec struct {
	ChainEnd          string               `json:"chainEnd"`
	PodSelector       metav1.LabelSelector `json:"podSelector"`
	NamespaceSelector metav1.LabelSelector `json:"namespaceSelector"`
}

SfcClientSelectorIntentSpec contains the specification of a network chain

type SfcEndKey

type SfcEndKey struct {
	ChainEnd string `json:"chainEnd"`
}

SfcEndKey can be added to resources for searching SFC intents by ChainEnd value

type SfcIntent

type SfcIntent struct {
	Metadata Metadata      `json:"metadata" yaml:"metadata"`
	Spec     SfcIntentSpec `json:"spec" yaml:"spec"`
}

SfcIntent defines the high level structure of a network chain document

type SfcIntentKey

type SfcIntentKey struct {
	Project             string `json:"project"`
	CompositeApp        string `json:"compositeapp"`
	CompositeAppVersion string `json:"compositeappversion"`
	DigName             string `json:"deploymentintentgroup"`
	NetControlIntent    string `json:"netcontrolintent"`
	SfcIntent           string `json:"sfcintent"`
}

SfcIntentKey is the key structure that is used in the database

type SfcIntentSpec

type SfcIntentSpec struct {
	ChainType    string `json:"chainType"`
	NetworkChain string `json:"networkChain"`
	Namespace    string `json:"namespace"`
}

SfcIntentSpec contains the specification of a network chain

type SfcProviderNetworkIntent

type SfcProviderNetworkIntent struct {
	Metadata Metadata                     `json:"metadata" yaml:"metadata"`
	Spec     SfcProviderNetworkIntentSpec `json:"spec" yaml:"spec"`
}

SfcProviderNetworkIntent defines the high level structure of a network chain document

type SfcProviderNetworkIntentByEndKey

type SfcProviderNetworkIntentByEndKey struct {
	Project             string `json:"project"`
	CompositeApp        string `json:"compositeapp"`
	CompositeAppVersion string `json:"compositeappversion"`
	DigName             string `json:"deploymentintentgroup"`
	NetControlIntent    string `json:"netcontrolintent"`
	SfcIntent           string `json:"sfcintent"`
	ChainEnd            string `json:"chainEnd"`
}

SfcProviderNetworkIntentByEndKey is the key structure that is used in the database

type SfcProviderNetworkIntentKey

type SfcProviderNetworkIntentKey struct {
	Project                  string `json:"project"`
	CompositeApp             string `json:"compositeapp"`
	CompositeAppVersion      string `json:"compositeappversion"`
	DigName                  string `json:"deploymentintentgroup"`
	NetControlIntent         string `json:"netcontrolintent"`
	SfcIntent                string `json:"sfcintent"`
	SfcProviderNetworkIntent string `json:"sfcprovidernetworkintent"`
}

SfcProviderNetworkIntentKey is the key structure that is used in the database

type SfcProviderNetworkIntentSpec

type SfcProviderNetworkIntentSpec struct {
	ChainEnd    string `json:"chainEnd"`
	NetworkName string `json:"networkName"`
	GatewayIp   string `json:"gatewayIp"`
	Subnet      string `json:"subnet"`
}

SfcProviderNetworkIntentSpec contains the specification of a network chain

Jump to

Keyboard shortcuts

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