api

package
v0.0.0-...-0c1943d Latest Latest
Warning

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

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

Documentation

Overview

Package api contains the REST API implementation for the adapter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyAPIProjectFromAPIM

func ApplyAPIProjectFromAPIM(
	payload []byte,
	vhostToEnvsMap map[string][]string,
	apiEnvs map[string]map[string]synchronizer.APIEnvProps,
) (deployedRevisionList []*notifier.DeployedAPIRevision, err error)

ApplyAPIProjectFromAPIM accepts an apictl project (as a byte array), list of vhosts with respective environments and updates the xds servers based upon the content.

func ApplyAPIProjectInStandaloneMode

func ApplyAPIProjectInStandaloneMode(payload []byte, override *bool) (apiProject model.ProjectAPI, err error)

ApplyAPIProjectInStandaloneMode is called by the rest implementation to differentiate between create and update using the override param

func ListApis

func ListApis(query *string, limit *int64, organizationID string) *apiModel.APIMeta

ListApis calls the ListApis method in xds_server.go

func ProcessMountedAPIProjects

func ProcessMountedAPIProjects() (artifactsMap map[string]model.ProjectAPI, err error)

ProcessMountedAPIProjects iterates through the api artifacts directory and apply the projects located within the directory.

Types

This section is empty.

Directories

Path Synopsis
Package restserver contains the server for the REST API implementation of the adapter
Package restserver contains the server for the REST API implementation of the adapter

Jump to

Keyboard shortcuts

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