applications

package
v0.0.0-...-61b73f6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIDefinitionInput

type APIDefinitionInput graphql.APIDefinitionInput

func NewAPI

func NewAPI(name, description, targetURL string) *APIDefinitionInput

func (*APIDefinitionInput) ToCompassInput

func (in *APIDefinitionInput) ToCompassInput() *graphql.APIDefinitionInput

func (*APIDefinitionInput) WithJsonApiSpec

func (in *APIDefinitionInput) WithJsonApiSpec(data *graphql.CLOB) *APIDefinitionInput

func (*APIDefinitionInput) WithXMLApiSpec

func (in *APIDefinitionInput) WithXMLApiSpec(data *graphql.CLOB) *APIDefinitionInput

func (*APIDefinitionInput) WithYamlApiSpec

func (in *APIDefinitionInput) WithYamlApiSpec(data *graphql.CLOB) *APIDefinitionInput

type APIPackageInput

type APIPackageInput graphql.PackageCreateInput

func NewAPIPackage

func NewAPIPackage(name, description string) *APIPackageInput

func (*APIPackageInput) ToCompassInput

func (input *APIPackageInput) ToCompassInput() *graphql.PackageCreateInput

func (*APIPackageInput) WithAPIDefinitions

func (input *APIPackageInput) WithAPIDefinitions(apis []*APIDefinitionInput) *APIPackageInput

func (*APIPackageInput) WithAuth

func (in *APIPackageInput) WithAuth(auth *AuthInput) *APIPackageInput

func (*APIPackageInput) WithEventDefinitions

func (input *APIPackageInput) WithEventDefinitions(apis []*EventDefinitionInput) *APIPackageInput

type APIPackageUpdateInput

type APIPackageUpdateInput graphql.PackageUpdateInput

func NewAPIPackageUpdateInput

func NewAPIPackageUpdateInput(name, description string, auth *graphql.AuthInput) *APIPackageUpdateInput

func (*APIPackageUpdateInput) ToCompassInput

func (input *APIPackageUpdateInput) ToCompassInput() graphql.PackageUpdateInput

type ApplicationRegisterInput

type ApplicationRegisterInput graphql.ApplicationRegisterInput

func NewApplication

func NewApplication(name, providerName, description string, labels map[string]interface{}) *ApplicationRegisterInput

func (*ApplicationRegisterInput) ToCompassInput

func (*ApplicationRegisterInput) WithAPIPackages

func (input *ApplicationRegisterInput) WithAPIPackages(packages ...*APIPackageInput) *ApplicationRegisterInput

type ApplicationUpdateInput

type ApplicationUpdateInput graphql.ApplicationUpdateInput

func NewApplicationUpdateInput

func NewApplicationUpdateInput(providerName, description string) *ApplicationUpdateInput

func (*ApplicationUpdateInput) ToCompassInput

func (input *ApplicationUpdateInput) ToCompassInput() graphql.ApplicationUpdateInput

type AuthInput

type AuthInput graphql.AuthInput

func NewAuth

func NewAuth() *AuthInput

func (*AuthInput) ToCompassInput

func (in *AuthInput) ToCompassInput() *graphql.AuthInput

func (*AuthInput) WithBasicAuth

func (in *AuthInput) WithBasicAuth(username, password string) *AuthInput

func (*AuthInput) WithCSRF

func (in *AuthInput) WithCSRF(tokenURL string) *AuthInput

func (*AuthInput) WithHeaders

func (in *AuthInput) WithHeaders(headers map[string][]string) *AuthInput

func (*AuthInput) WithOAuth

func (in *AuthInput) WithOAuth(clientId, clientSecret, url string) *AuthInput

func (*AuthInput) WithQueryParams

func (in *AuthInput) WithQueryParams(queryParams map[string][]string) *AuthInput

type EventDefinitionInput

type EventDefinitionInput graphql.EventDefinitionInput

func NewEventDefinition

func NewEventDefinition(name, description string) *EventDefinitionInput

func (*EventDefinitionInput) ToCompassInput

func (input *EventDefinitionInput) ToCompassInput() *graphql.EventDefinitionInput

func (*EventDefinitionInput) WithJsonEventSpec

func (in *EventDefinitionInput) WithJsonEventSpec(data *graphql.CLOB) *EventDefinitionInput

func (*EventDefinitionInput) WithYamlEventSpec

func (in *EventDefinitionInput) WithYamlEventSpec(data *graphql.CLOB) *EventDefinitionInput

type NameResolver

type NameResolver struct {
	// contains filtered or unexported fields
}

func NewNameResolver

func NewNameResolver(namespace string) *NameResolver

NewNameResolver creates NameResolver that uses application name and namespace.

func (*NameResolver) ExtractServiceId

func (resolver *NameResolver) ExtractServiceId(application, host string) string

ExtractServiceId extracts service ID from given host

func (*NameResolver) GetCredentialsSecretName

func (resolver *NameResolver) GetCredentialsSecretName(application, id string) string

func (*NameResolver) GetGatewayUrl

func (resolver *NameResolver) GetGatewayUrl(application, id string) string

GetGatewayUrl return gateway url with given ID

func (*NameResolver) GetRequestParamsSecretName

func (resolver *NameResolver) GetRequestParamsSecretName(application, id string) string

func (*NameResolver) GetResourceName

func (resolver *NameResolver) GetResourceName(application, id string) string

GetResourceName returns resource name with given ID

Jump to

Keyboard shortcuts

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