staticroute

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	String = common.String
)

Functions

This section is empty.

Types

type StaticRouteService

type StaticRouteService struct {
	common.Service
	StaticRouteStore *StaticRouteStore
}

func InitializeStaticRoute

func InitializeStaticRoute(commonService common.Service) (*StaticRouteService, error)

InitializeStaticRoute sync NSX resources

func (*StaticRouteService) Cleanup

func (service *StaticRouteService) Cleanup() error

func (*StaticRouteService) CreateOrUpdateStaticRoute

func (service *StaticRouteService) CreateOrUpdateStaticRoute(namespace string, obj *v1alpha1.StaticRoute) error

func (*StaticRouteService) DeleteStaticRoute

func (service *StaticRouteService) DeleteStaticRoute(namespace string, uid string) error

func (*StaticRouteService) DeleteStaticRouteByPath

func (service *StaticRouteService) DeleteStaticRouteByPath(orgId string, projectId string, vpcId string, uid string) error

func (*StaticRouteService) GetUID

func (service *StaticRouteService) GetUID(staticroute *model.StaticRoutes) *string

func (*StaticRouteService) ListStaticRoute

func (service *StaticRouteService) ListStaticRoute() []model.StaticRoutes

type StaticRouteStore

type StaticRouteStore struct {
	common.ResourceStore
}

StaticRouteStore is a store for static route

func (*StaticRouteStore) Apply added in v0.0.1

func (StaticRouteStore *StaticRouteStore) Apply(i interface{}) error

func (*StaticRouteStore) GetByKey

func (StaticRouteStore *StaticRouteStore) GetByKey(key string) *model.StaticRoutes

Jump to

Keyboard shortcuts

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