staticroute

package
v0.0.0-...-aba7421 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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
	VPCService       common.VPCServiceProvider
}

func InitializeStaticRoute

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

InitializeStaticRoute sync NSX resources

func (*StaticRouteService) Cleanup

func (service *StaticRouteService) Cleanup(ctx context.Context) 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

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