bundlegen

package
v1.119.2-beta Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const GoogleAuthTargetName = "google-auth"
View Source
const NoAuthTargetName = "default"

Variables

This section is empty.

Functions

func GenerateAPIProxyDefFromGQL

func GenerateAPIProxyDefFromGQL(name string,
	gqlDocName string,
	basePath string,
	apiKeyLocation string,
	skipPolicy bool,
	addCORS bool,
	targetUrlRef string,
	targetUrl string) (err error)

func GenerateAPIProxyDefFromOAS

func GenerateAPIProxyDefFromOAS(name string,
	oasDocName string,
	skipPolicy bool,
	addCORS bool,
	oasGoogleAcessTokenScopeLiteral string,
	oasGoogleIdTokenAudLiteral string,
	oasGoogleIdTokenAudRef string,
	oasTargetUrlRef string,
	targetUrl string) (err error)

func GenerateAPIProxyFromSwagger

func GenerateAPIProxyFromSwagger(name string,
	oasDocName string,
	basePath string,
	addCORS bool) (string, error)

func GenerateIntegrationAPIProxy

func GenerateIntegrationAPIProxy(name string,
	integration string,
	apitrigger string) (err error)

func GenerateSetTargetPolicy

func GenerateSetTargetPolicy() bool

func GetAMPolicies

func GetAMPolicies() map[string]string

func GetAllowDefinition

func GetAllowDefinition() string

func GetGoogleApiName

func GetGoogleApiName() string

func GetQuotaPolicies

func GetQuotaPolicies() map[string]string

func GetSecuritySchemesList

func GetSecuritySchemesList() []securitySchemesDef

func GetSpikeArrestPolicies

func GetSpikeArrestPolicies() map[string]string

func LoadDocumentFromFile

func LoadDocumentFromFile(filePath string, validate bool, formatValidation bool) (string, []byte, error)

func LoadDocumentFromURI

func LoadDocumentFromURI(uri string, validate bool, formatValidation bool) (string, []byte, error)

func LoadSwaggerFromFile

func LoadSwaggerFromFile(filePath string) (string, []byte, error)

func LoadSwaggerFromUri

func LoadSwaggerFromUri(endpoint string) (string, []byte, error)

Types

type ValueDef

type ValueDef struct {
	Standard string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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