Documentation ¶
Overview ¶
Package api contains the REST API implementation for the adapter
Index ¶
- func ApplyAPIProjectFromAPIM(payload []byte, vhostToEnvsMap map[string][]string, ...) (deployedRevisionList []*notifier.DeployedAPIRevision, err error)
- func ApplyAPIProjectInStandaloneMode(payload []byte, override *bool) (apiProject model.ProjectAPI, err error)
- func ListApis(query *string, limit *int64, organizationID string) *apiModel.APIMeta
- func ProcessMountedAPIProjects() (artifactsMap map[string]model.ProjectAPI, err error)
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 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 |
Click to show internal directories.
Click to hide internal directories.