graphql

package
v0.0.0-...-0640eb1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 28 Imported by: 53

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllDocumentFormat = []DocumentFormat{
	DocumentFormatMarkdown,
}
View Source
var AllEventSpecType = []EventSpecType{
	EventSpecTypeAsyncAPI,
}

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type APIDefinition

type APIDefinition struct {
	BundleID    string   `json:"bundleID"`
	Name        string   `json:"name"`
	Description *string  `json:"description"`
	Spec        *APISpec `json:"spec"`
	TargetURL   string   `json:"targetURL"`
	//  group allows you to find the same API but in different version
	Group   *string  `json:"group"`
	Version *Version `json:"version"`
	*BaseEntity
}

APIDefinition missing godoc

func (*APIDefinition) GetType

func (e *APIDefinition) GetType() resource.Type

GetType missing godoc

type APIDefinitionExt

type APIDefinitionExt struct {
	APIDefinition
	Spec *APISpecExt `json:"spec"`
}

APIDefinitionExt missing godoc

type APIDefinitionInput

type APIDefinitionInput struct {
	// **Validation:** ASCII printable characters, max=100
	Name string `json:"name"`
	// **Validation:** max=2000
	Description *string `json:"description"`
	// **Validation:** valid URL, max=256
	TargetURL string `json:"targetURL"`
	// **Validation:** max=36
	Group   *string       `json:"group"`
	Spec    *APISpecInput `json:"spec"`
	Version *VersionInput `json:"version"`
}

func (APIDefinitionInput) Validate

func (i APIDefinitionInput) Validate() error

Validate missing godoc

type APIDefinitionPage

type APIDefinitionPage struct {
	Data       []*APIDefinition `json:"data"`
	PageInfo   *PageInfo        `json:"pageInfo"`
	TotalCount int              `json:"totalCount"`
}

func (APIDefinitionPage) IsPageable

func (APIDefinitionPage) IsPageable()

type APIDefinitionPageExt

type APIDefinitionPageExt struct {
	APIDefinitionPage
	Data []*APIDefinitionExt `json:"data"`
}

APIDefinitionPageExt is an extended type used by external API

type APISpec

type APISpec struct {
	// when fetch request specified, data will be automatically populated
	ID           string      `json:"id"`
	Data         *CLOB       `json:"data"`
	Format       SpecFormat  `json:"format"`
	Type         APISpecType `json:"type"`
	DefinitionID string      // Needed to resolve FetchRequest for given APISpec
}

APISpec missing godoc

type APISpecExt

type APISpecExt struct {
	APISpec
	FetchRequest *FetchRequest `json:"fetchRequest"`
}

APISpecExt missing godoc

type APISpecInput

type APISpecInput struct {
	Data         *CLOB              `json:"data"`
	Type         APISpecType        `json:"type"`
	Format       SpecFormat         `json:"format"`
	FetchRequest *FetchRequestInput `json:"fetchRequest"`
}

**Validation:** - for ODATA type, accepted formats are XML and JSON, for OPEN_API accepted formats are YAML and JSON - data or fetchRequest required

func (APISpecInput) Validate

func (i APISpecInput) Validate() error

Validate missing godoc

type APISpecResolver

type APISpecResolver interface {
	FetchRequest(ctx context.Context, obj *APISpec) (*FetchRequest, error)
}

type APISpecType

type APISpecType string
const (
	APISpecTypeOdata   APISpecType = "ODATA"
	APISpecTypeOpenAPI APISpecType = "OPEN_API"
)

func (APISpecType) IsValid

func (e APISpecType) IsValid() bool

func (APISpecType) MarshalGQL

func (e APISpecType) MarshalGQL(w io.Writer)

func (APISpecType) String

func (e APISpecType) String() string

func (*APISpecType) UnmarshalGQL

func (e *APISpecType) UnmarshalGQL(v interface{}) error

type AppSystemAuth

type AppSystemAuth struct {
	ID   string `json:"id"`
	Auth *Auth  `json:"auth"`
}

func (AppSystemAuth) IsSystemAuth

func (AppSystemAuth) IsSystemAuth()

type Application

type Application struct {
	Name                  string             `json:"name"`
	ProviderName          *string            `json:"providerName"`
	IntegrationSystemID   *string            `json:"integrationSystemID"`
	ApplicationTemplateID *string            `json:"applicationTemplateID"`
	Description           *string            `json:"description"`
	Status                *ApplicationStatus `json:"status"`
	HealthCheckURL        *string            `json:"healthCheckURL"`
	SystemNumber          *string            `json:"systemNumber"`
	*BaseEntity
}

Application missing godoc

func (*Application) GetType

func (e *Application) GetType() resource.Type

GetType missing godoc

func (*Application) Sentinel

func (e *Application) Sentinel()

Sentinel missing godoc

type ApplicationEventingConfiguration

type ApplicationEventingConfiguration struct {
	DefaultURL string `json:"defaultURL"`
}

type ApplicationExt

type ApplicationExt struct {
	Application
	Labels                Labels                           `json:"labels"`
	Webhooks              []Webhook                        `json:"webhooks"`
	Auths                 []*AppSystemAuth                 `json:"auths"`
	Bundle                BundleExt                        `json:"bundle"`
	Bundles               BundlePageExt                    `json:"bundles"`
	EventingConfiguration ApplicationEventingConfiguration `json:"eventingConfiguration"`
}

ApplicationExt missing godoc

type ApplicationFromTemplateInput

type ApplicationFromTemplateInput struct {
	// **Validation:** ASCII printable characters, max=100
	TemplateName string                `json:"templateName"`
	Values       []*TemplateValueInput `json:"values"`
}

**Validation:** provided placeholders' names are unique

func (ApplicationFromTemplateInput) Validate

func (i ApplicationFromTemplateInput) Validate() error

Validate missing godoc

type ApplicationPage

type ApplicationPage struct {
	Data       []*Application `json:"data"`
	PageInfo   *PageInfo      `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

func (ApplicationPage) IsPageable

func (ApplicationPage) IsPageable()

type ApplicationPageExt

type ApplicationPageExt struct {
	ApplicationPage
	Data []*ApplicationExt `json:"data"`
}

ApplicationPageExt is an extended type used by external API

type ApplicationRegisterInput

type ApplicationRegisterInput struct {
	// **Validation:**  Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and .
	Name string `json:"name"`
	// **Validation:** max=256
	ProviderName *string `json:"providerName"`
	// **Validation:** max=2000
	Description *string `json:"description"`
	// **Validation:** label key is alphanumeric with underscore
	Labels   Labels          `json:"labels"`
	Webhooks []*WebhookInput `json:"webhooks"`
	// **Validation:** valid URL, max=256
	HealthCheckURL      *string                     `json:"healthCheckURL"`
	Bundles             []*BundleCreateInput        `json:"bundles"`
	IntegrationSystemID *string                     `json:"integrationSystemID"`
	StatusCondition     *ApplicationStatusCondition `json:"statusCondition"`
}

func (ApplicationRegisterInput) Validate

func (i ApplicationRegisterInput) Validate() error

Validate missing godoc

type ApplicationResolver

type ApplicationResolver interface {
	Labels(ctx context.Context, obj *Application, key *string) (Labels, error)

	Webhooks(ctx context.Context, obj *Application) ([]*Webhook, error)

	Bundles(ctx context.Context, obj *Application, first *int, after *PageCursor) (*BundlePage, error)
	Bundle(ctx context.Context, obj *Application, id string) (*Bundle, error)
	Auths(ctx context.Context, obj *Application) ([]*AppSystemAuth, error)
	EventingConfiguration(ctx context.Context, obj *Application) (*ApplicationEventingConfiguration, error)
}

type ApplicationStatus

type ApplicationStatus struct {
	Condition ApplicationStatusCondition `json:"condition"`
	Timestamp Timestamp                  `json:"timestamp"`
}

type ApplicationStatusCondition

type ApplicationStatusCondition string
const (
	ApplicationStatusConditionInitial         ApplicationStatusCondition = "INITIAL"
	ApplicationStatusConditionConnected       ApplicationStatusCondition = "CONNECTED"
	ApplicationStatusConditionFailed          ApplicationStatusCondition = "FAILED"
	ApplicationStatusConditionCreating        ApplicationStatusCondition = "CREATING"
	ApplicationStatusConditionCreateFailed    ApplicationStatusCondition = "CREATE_FAILED"
	ApplicationStatusConditionCreateSucceeded ApplicationStatusCondition = "CREATE_SUCCEEDED"
	ApplicationStatusConditionUpdating        ApplicationStatusCondition = "UPDATING"
	ApplicationStatusConditionUpdateFailed    ApplicationStatusCondition = "UPDATE_FAILED"
	ApplicationStatusConditionUpdateSucceeded ApplicationStatusCondition = "UPDATE_SUCCEEDED"
	ApplicationStatusConditionDeleting        ApplicationStatusCondition = "DELETING"
	ApplicationStatusConditionDeleteFailed    ApplicationStatusCondition = "DELETE_FAILED"
	ApplicationStatusConditionDeleteSucceeded ApplicationStatusCondition = "DELETE_SUCCEEDED"
)

func (ApplicationStatusCondition) IsValid

func (e ApplicationStatusCondition) IsValid() bool

func (ApplicationStatusCondition) MarshalGQL

func (e ApplicationStatusCondition) MarshalGQL(w io.Writer)

func (ApplicationStatusCondition) String

func (*ApplicationStatusCondition) UnmarshalGQL

func (e *ApplicationStatusCondition) UnmarshalGQL(v interface{}) error

type ApplicationTemplate

type ApplicationTemplate struct {
	ID               string                         `json:"id"`
	Name             string                         `json:"name"`
	Description      *string                        `json:"description"`
	Webhooks         []Webhook                      `json:"webhooks"`
	ApplicationInput string                         `json:"applicationInput"`
	Placeholders     []*PlaceholderDefinition       `json:"placeholders"`
	AccessLevel      ApplicationTemplateAccessLevel `json:"accessLevel"`
}

ApplicationTemplate missing godoc

type ApplicationTemplateAccessLevel

type ApplicationTemplateAccessLevel string
const (
	ApplicationTemplateAccessLevelGlobal ApplicationTemplateAccessLevel = "GLOBAL"
)

func (ApplicationTemplateAccessLevel) IsValid

func (ApplicationTemplateAccessLevel) MarshalGQL

func (e ApplicationTemplateAccessLevel) MarshalGQL(w io.Writer)

func (ApplicationTemplateAccessLevel) String

func (*ApplicationTemplateAccessLevel) UnmarshalGQL

func (e *ApplicationTemplateAccessLevel) UnmarshalGQL(v interface{}) error

type ApplicationTemplateInput

type ApplicationTemplateInput struct {
	// **Validation:** ASCII printable characters, max=100
	Name string `json:"name"`
	// **Validation:** max=2000
	Webhooks         []*WebhookInput                `json:"webhooks"`
	Description      *string                        `json:"description"`
	ApplicationInput *ApplicationRegisterInput      `json:"applicationInput"`
	Placeholders     []*PlaceholderDefinitionInput  `json:"placeholders"`
	AccessLevel      ApplicationTemplateAccessLevel `json:"accessLevel"`
}

**Validation:** provided placeholders' names are unique and used in applicationInput

func (ApplicationTemplateInput) Validate

func (i ApplicationTemplateInput) Validate() error

Validate missing godoc

type ApplicationTemplatePage

type ApplicationTemplatePage struct {
	Data       []*ApplicationTemplate `json:"data"`
	PageInfo   *PageInfo              `json:"pageInfo"`
	TotalCount int                    `json:"totalCount"`
}

func (ApplicationTemplatePage) IsPageable

func (ApplicationTemplatePage) IsPageable()

type ApplicationTemplateResolver

type ApplicationTemplateResolver interface {
	Webhooks(ctx context.Context, obj *ApplicationTemplate) ([]*Webhook, error)
}

type ApplicationTemplateUpdateInput

type ApplicationTemplateUpdateInput struct {
	// **Validation:** ASCII printable characters, max=100
	Name string `json:"name"`
	// **Validation:** max=2000
	Description      *string                        `json:"description"`
	ApplicationInput *ApplicationRegisterInput      `json:"applicationInput"`
	Placeholders     []*PlaceholderDefinitionInput  `json:"placeholders"`
	AccessLevel      ApplicationTemplateAccessLevel `json:"accessLevel"`
}

func (ApplicationTemplateUpdateInput) Validate

Validate missing godoc

type ApplicationUpdateInput

type ApplicationUpdateInput struct {
	// **Validation:** max=256
	ProviderName *string `json:"providerName"`
	// **Validation:** max=2000
	Description *string `json:"description"`
	// **Validation:** valid URL, max=256
	HealthCheckURL      *string                     `json:"healthCheckURL"`
	IntegrationSystemID *string                     `json:"integrationSystemID"`
	StatusCondition     *ApplicationStatusCondition `json:"statusCondition"`
}

func (ApplicationUpdateInput) Validate

func (i ApplicationUpdateInput) Validate() error

Validate missing godoc

type Auth

type Auth struct {
	Credential                      CredentialData         `json:"credential"`
	AdditionalHeaders               HTTPHeaders            `json:"additionalHeaders"`
	AdditionalHeadersSerialized     *HTTPHeadersSerialized `json:"additionalHeadersSerialized"`
	AdditionalQueryParams           QueryParams            `json:"additionalQueryParams"`
	AdditionalQueryParamsSerialized *QueryParamsSerialized `json:"additionalQueryParamsSerialized"`
	RequestAuth                     *CredentialRequestAuth `json:"requestAuth"`
}

func (*Auth) UnmarshalJSON

func (a *Auth) UnmarshalJSON(data []byte) error

UnmarshalJSON is used only by integration tests, we have to help graphql client to deal with Credential field

type AuthInput

type AuthInput struct {
	Credential *CredentialDataInput `json:"credential"`
	// **Validation:** if provided, headers name and value required
	AdditionalHeaders           HTTPHeaders            `json:"additionalHeaders"`
	AdditionalHeadersSerialized *HTTPHeadersSerialized `json:"additionalHeadersSerialized"`
	// **Validation:** if provided, query parameters name and value required
	AdditionalQueryParams           QueryParams                 `json:"additionalQueryParams"`
	AdditionalQueryParamsSerialized *QueryParamsSerialized      `json:"additionalQueryParamsSerialized"`
	RequestAuth                     *CredentialRequestAuthInput `json:"requestAuth"`
}

func (AuthInput) Validate

func (i AuthInput) Validate() error

Validate missing godoc

type AutomaticScenarioAssignment

type AutomaticScenarioAssignment struct {
	ScenarioName string `json:"scenarioName"`
	Selector     *Label `json:"selector"`
}

type AutomaticScenarioAssignmentPage

type AutomaticScenarioAssignmentPage struct {
	Data       []*AutomaticScenarioAssignment `json:"data"`
	PageInfo   *PageInfo                      `json:"pageInfo"`
	TotalCount int                            `json:"totalCount"`
}

func (AutomaticScenarioAssignmentPage) IsPageable

func (AutomaticScenarioAssignmentPage) IsPageable()

type AutomaticScenarioAssignmentSetInput

type AutomaticScenarioAssignmentSetInput struct {
	ScenarioName string `json:"scenarioName"`
	// Runtimes and Applications which contain labels with equal key and value are matched
	Selector *LabelSelectorInput `json:"selector"`
}

type BaseEntity

type BaseEntity struct {
	ID        string     `json:"id"`
	Ready     bool       `json:"ready"`
	CreatedAt *Timestamp `json:"createdAt"`
	UpdatedAt *Timestamp `json:"updatedAt"`
	DeletedAt *Timestamp `json:"deletedAt"`
	Error     *string    `json:"error"`
}

BaseEntity missing godoc

func (*BaseEntity) GetID

func (e *BaseEntity) GetID() string

GetID missing godoc

func (*BaseEntity) GetType

func (e *BaseEntity) GetType() resource.Type

GetType missing godoc

type BasicCredentialData

type BasicCredentialData struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

func (BasicCredentialData) IsCredentialData

func (BasicCredentialData) IsCredentialData()

type BasicCredentialDataInput

type BasicCredentialDataInput struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

func (BasicCredentialDataInput) Validate

func (i BasicCredentialDataInput) Validate() error

Validate missing godoc

type Bundle

type Bundle struct {
	Name                           string      `json:"name"`
	Description                    *string     `json:"description"`
	InstanceAuthRequestInputSchema *JSONSchema `json:"InstanceAuthRequestInputSchema"`
	// When defined, all Auth requests fallback to defaultAuth.
	DefaultInstanceAuth *Auth `json:"defaultInstanceAuth"`
	*BaseEntity
}

Bundle missing godoc

func (*Bundle) GetType

func (e *Bundle) GetType() resource.Type

GetType missing godoc

type BundleCreateInput

type BundleCreateInput struct {
	// **Validation:** ASCII printable characters, max=100
	Name string `json:"name"`
	// **Validation:** max=2000
	Description                    *string                 `json:"description"`
	InstanceAuthRequestInputSchema *JSONSchema             `json:"instanceAuthRequestInputSchema"`
	DefaultInstanceAuth            *AuthInput              `json:"defaultInstanceAuth"`
	APIDefinitions                 []*APIDefinitionInput   `json:"apiDefinitions"`
	EventDefinitions               []*EventDefinitionInput `json:"eventDefinitions"`
	Documents                      []*DocumentInput        `json:"documents"`
}

func (BundleCreateInput) Validate

func (i BundleCreateInput) Validate() error

Validate missing godoc

type BundleExt

type BundleExt struct {
	Bundle
	APIDefinitions   APIDefinitionPageExt      `json:"apiDefinitions"`
	EventDefinitions EventAPIDefinitionPageExt `json:"eventDefinitions"`
	Documents        DocumentPageExt           `json:"documents"`
	APIDefinition    APIDefinitionExt          `json:"apiDefinition"`
	EventDefinition  EventDefinition           `json:"eventDefinition"`
	Document         Document                  `json:"document"`
	InstanceAuth     *BundleInstanceAuth       `json:"instanceAuth"`
	InstanceAuths    []*BundleInstanceAuth     `json:"instanceAuths"`
}

BundleExt missing godoc

type BundleInstanceAuth

type BundleInstanceAuth struct {
	ID string `json:"id"`
	// Context of BundleInstanceAuth - such as Runtime ID, namespace
	Context *JSON `json:"context"`
	// User input while requesting Bundle Instance Auth
	InputParams *JSON `json:"inputParams"`
	// It may be empty if status is PENDING.
	// Populated with `bundle.defaultAuth` value if `bundle.defaultAuth` is defined. If not, Compass notifies Application/Integration System about the Auth request.
	Auth             *Auth                     `json:"auth"`
	Status           *BundleInstanceAuthStatus `json:"status"`
	RuntimeID        *string                   `json:"runtimeID"`
	RuntimeContextID *string                   `json:"runtimeContextID"`
}

type BundleInstanceAuthRequestInput

type BundleInstanceAuthRequestInput struct {
	ID *string `json:"id"`
	// Context of BundleInstanceAuth - such as Runtime ID, namespace, etc.
	Context *JSON `json:"context"`
	// **Validation:** JSON validated against bundle.instanceAuthRequestInputSchema
	InputParams *JSON `json:"inputParams"`
}

func (BundleInstanceAuthRequestInput) Validate

Validate missing godoc

type BundleInstanceAuthSetInput

type BundleInstanceAuthSetInput struct {
	// **Validation:** If not provided, the status has to be set. If provided, the status condition  must be "SUCCEEDED".
	Auth *AuthInput `json:"auth"`
	// **Validation:** Optional if the auth is provided.
	// If the status condition is "FAILED", auth must be empty.
	Status *BundleInstanceAuthStatusInput `json:"status"`
}

func (BundleInstanceAuthSetInput) Validate

func (i BundleInstanceAuthSetInput) Validate() error

Validate missing godoc

type BundleInstanceAuthSetStatusConditionInput

type BundleInstanceAuthSetStatusConditionInput string
const (
	BundleInstanceAuthSetStatusConditionInputSucceeded BundleInstanceAuthSetStatusConditionInput = "SUCCEEDED"
	BundleInstanceAuthSetStatusConditionInputFailed    BundleInstanceAuthSetStatusConditionInput = "FAILED"
)

func (BundleInstanceAuthSetStatusConditionInput) IsValid

func (BundleInstanceAuthSetStatusConditionInput) MarshalGQL

func (BundleInstanceAuthSetStatusConditionInput) String

func (*BundleInstanceAuthSetStatusConditionInput) UnmarshalGQL

func (e *BundleInstanceAuthSetStatusConditionInput) UnmarshalGQL(v interface{}) error

type BundleInstanceAuthStatus

type BundleInstanceAuthStatus struct {
	Condition BundleInstanceAuthStatusCondition `json:"condition"`
	Timestamp Timestamp                         `json:"timestamp"`
	Message   string                            `json:"message"`
	// Possible reasons:
	// - PendingNotification
	// - NotificationSent
	// - CredentialsProvided
	// - CredentialsNotProvided
	// - PendingDeletion
	Reason string `json:"reason"`
}

type BundleInstanceAuthStatusCondition

type BundleInstanceAuthStatusCondition string
const (
	// When creating, before Application sets the credentials
	BundleInstanceAuthStatusConditionPending   BundleInstanceAuthStatusCondition = "PENDING"
	BundleInstanceAuthStatusConditionSucceeded BundleInstanceAuthStatusCondition = "SUCCEEDED"
	BundleInstanceAuthStatusConditionFailed    BundleInstanceAuthStatusCondition = "FAILED"
	// When Runtime requests deletion and Application has to revoke the credentials
	BundleInstanceAuthStatusConditionUnused BundleInstanceAuthStatusCondition = "UNUSED"
)

func (BundleInstanceAuthStatusCondition) IsValid

func (BundleInstanceAuthStatusCondition) MarshalGQL

func (BundleInstanceAuthStatusCondition) String

func (*BundleInstanceAuthStatusCondition) UnmarshalGQL

func (e *BundleInstanceAuthStatusCondition) UnmarshalGQL(v interface{}) error

type BundleInstanceAuthStatusInput

type BundleInstanceAuthStatusInput struct {
	Condition BundleInstanceAuthSetStatusConditionInput `json:"condition"`
	// **Validation:** required, if condition is FAILED
	Message string `json:"message"`
	// Example reasons:
	// - PendingNotification
	// - NotificationSent
	// - CredentialsProvided
	// - CredentialsNotProvided
	// - PendingDeletion
	//
	//    **Validation**: required, if condition is FAILED
	Reason string `json:"reason"`
}

func (BundleInstanceAuthStatusInput) Validate

func (i BundleInstanceAuthStatusInput) Validate() error

Validate missing godoc

type BundlePage

type BundlePage struct {
	Data       []*Bundle `json:"data"`
	PageInfo   *PageInfo `json:"pageInfo"`
	TotalCount int       `json:"totalCount"`
}

func (BundlePage) IsPageable

func (BundlePage) IsPageable()

type BundlePageExt

type BundlePageExt struct {
	BundlePage
	Data []*BundleExt `json:"data"`
}

BundlePageExt missing godoc

type BundleResolver

type BundleResolver interface {
	InstanceAuth(ctx context.Context, obj *Bundle, id string) (*BundleInstanceAuth, error)
	InstanceAuths(ctx context.Context, obj *Bundle) ([]*BundleInstanceAuth, error)

	APIDefinitions(ctx context.Context, obj *Bundle, group *string, first *int, after *PageCursor) (*APIDefinitionPage, error)
	EventDefinitions(ctx context.Context, obj *Bundle, group *string, first *int, after *PageCursor) (*EventDefinitionPage, error)
	Documents(ctx context.Context, obj *Bundle, first *int, after *PageCursor) (*DocumentPage, error)
	APIDefinition(ctx context.Context, obj *Bundle, id string) (*APIDefinition, error)
	EventDefinition(ctx context.Context, obj *Bundle, id string) (*EventDefinition, error)
	Document(ctx context.Context, obj *Bundle, id string) (*Document, error)
}

type BundleUpdateInput

type BundleUpdateInput struct {
	// **Validation:** ASCII printable characters, max=100
	Name string `json:"name"`
	// **Validation:** max=2000
	Description                    *string     `json:"description"`
	InstanceAuthRequestInputSchema *JSONSchema `json:"instanceAuthRequestInputSchema"`
	// While updating defaultInstanceAuth, existing BundleInstanceAuths are NOT updated.
	DefaultInstanceAuth *AuthInput `json:"defaultInstanceAuth"`
}

func (BundleUpdateInput) Validate

func (i BundleUpdateInput) Validate() error

Validate missing godoc

type CLOB

type CLOB string

CLOB missing godoc

func (CLOB) MarshalGQL

func (y CLOB) MarshalGQL(w io.Writer)

MarshalGQL missing godoc

func (*CLOB) UnmarshalGQL

func (y *CLOB) UnmarshalGQL(v interface{}) error

UnmarshalGQL missing godoc

type CSRFTokenCredentialRequestAuth

type CSRFTokenCredentialRequestAuth struct {
	TokenEndpointURL                string                 `json:"tokenEndpointURL"`
	Credential                      CredentialData         `json:"credential"`
	AdditionalHeaders               HTTPHeaders            `json:"additionalHeaders"`
	AdditionalHeadersSerialized     *HTTPHeadersSerialized `json:"additionalHeadersSerialized"`
	AdditionalQueryParams           QueryParams            `json:"additionalQueryParams"`
	AdditionalQueryParamsSerialized *QueryParamsSerialized `json:"additionalQueryParamsSerialized"`
}

func (*CSRFTokenCredentialRequestAuth) UnmarshalJSON

func (csrf *CSRFTokenCredentialRequestAuth) UnmarshalJSON(data []byte) error

UnmarshalJSON missing godoc

type CSRFTokenCredentialRequestAuthInput

type CSRFTokenCredentialRequestAuthInput struct {
	// **Validation:** valid URL
	TokenEndpointURL string               `json:"tokenEndpointURL"`
	Credential       *CredentialDataInput `json:"credential"`
	// **Validation:** if provided, headers name and value required
	AdditionalHeaders           HTTPHeaders            `json:"additionalHeaders"`
	AdditionalHeadersSerialized *HTTPHeadersSerialized `json:"additionalHeadersSerialized"`
	// **Validation:** if provided, query parameters name and value required
	AdditionalQueryParams           QueryParams            `json:"additionalQueryParams"`
	AdditionalQueryParamsSerialized *QueryParamsSerialized `json:"additionalQueryParamsSerialized"`
}

func (CSRFTokenCredentialRequestAuthInput) Validate

Validate missing godoc

type ComplexityRoot

type ComplexityRoot struct {
	APIDefinition struct {
		CreatedAt   func(childComplexity int) int
		DeletedAt   func(childComplexity int) int
		Description func(childComplexity int) int
		Error       func(childComplexity int) int
		Group       func(childComplexity int) int
		ID          func(childComplexity int) int
		Name        func(childComplexity int) int
		Spec        func(childComplexity int) int
		TargetURL   func(childComplexity int) int
		UpdatedAt   func(childComplexity int) int
		Version     func(childComplexity int) int
	}

	APIDefinitionPage struct {
		Data       func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	APISpec struct {
		Data         func(childComplexity int) int
		FetchRequest func(childComplexity int) int
		Format       func(childComplexity int) int
		ID           func(childComplexity int) int
		Type         func(childComplexity int) int
	}

	AppSystemAuth struct {
		Auth func(childComplexity int) int
		ID   func(childComplexity int) int
	}

	Application struct {
		ApplicationTemplateID func(childComplexity int) int
		Auths                 func(childComplexity int) int
		Bundle                func(childComplexity int, id string) int
		Bundles               func(childComplexity int, first *int, after *PageCursor) int
		CreatedAt             func(childComplexity int) int
		DeletedAt             func(childComplexity int) int
		Description           func(childComplexity int) int
		Error                 func(childComplexity int) int
		EventingConfiguration func(childComplexity int) int
		HealthCheckURL        func(childComplexity int) int
		ID                    func(childComplexity int) int
		IntegrationSystemID   func(childComplexity int) int
		Labels                func(childComplexity int, key *string) int
		Name                  func(childComplexity int) int
		ProviderName          func(childComplexity int) int
		Status                func(childComplexity int) int
		SystemNumber          func(childComplexity int) int
		UpdatedAt             func(childComplexity int) int
		Webhooks              func(childComplexity int) int
	}

	ApplicationEventingConfiguration struct {
		DefaultURL func(childComplexity int) int
	}

	ApplicationPage struct {
		Data       func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	ApplicationStatus struct {
		Condition func(childComplexity int) int
		Timestamp func(childComplexity int) int
	}

	ApplicationTemplate struct {
		AccessLevel      func(childComplexity int) int
		ApplicationInput func(childComplexity int) int
		Description      func(childComplexity int) int
		ID               func(childComplexity int) int
		Name             func(childComplexity int) int
		Placeholders     func(childComplexity int) int
		Webhooks         func(childComplexity int) int
	}

	ApplicationTemplatePage struct {
		Data       func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	Auth struct {
		AdditionalHeaders               func(childComplexity int) int
		AdditionalHeadersSerialized     func(childComplexity int) int
		AdditionalQueryParams           func(childComplexity int) int
		AdditionalQueryParamsSerialized func(childComplexity int) int
		Credential                      func(childComplexity int) int
		RequestAuth                     func(childComplexity int) int
	}

	AutomaticScenarioAssignment struct {
		ScenarioName func(childComplexity int) int
		Selector     func(childComplexity int) int
	}

	AutomaticScenarioAssignmentPage struct {
		Data       func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	BasicCredentialData struct {
		Password func(childComplexity int) int
		Username func(childComplexity int) int
	}

	Bundle struct {
		APIDefinition                  func(childComplexity int, id string) int
		APIDefinitions                 func(childComplexity int, group *string, first *int, after *PageCursor) int
		CreatedAt                      func(childComplexity int) int
		DefaultInstanceAuth            func(childComplexity int) int
		DeletedAt                      func(childComplexity int) int
		Description                    func(childComplexity int) int
		Document                       func(childComplexity int, id string) int
		Documents                      func(childComplexity int, first *int, after *PageCursor) int
		Error                          func(childComplexity int) int
		EventDefinition                func(childComplexity int, id string) int
		EventDefinitions               func(childComplexity int, group *string, first *int, after *PageCursor) int
		ID                             func(childComplexity int) int
		InstanceAuth                   func(childComplexity int, id string) int
		InstanceAuthRequestInputSchema func(childComplexity int) int
		InstanceAuths                  func(childComplexity int) int
		Name                           func(childComplexity int) int
		UpdatedAt                      func(childComplexity int) int
	}

	BundleInstanceAuth struct {
		Auth             func(childComplexity int) int
		Context          func(childComplexity int) int
		ID               func(childComplexity int) int
		InputParams      func(childComplexity int) int
		RuntimeContextID func(childComplexity int) int
		RuntimeID        func(childComplexity int) int
		Status           func(childComplexity int) int
	}

	BundleInstanceAuthStatus struct {
		Condition func(childComplexity int) int
		Message   func(childComplexity int) int
		Reason    func(childComplexity int) int
		Timestamp func(childComplexity int) int
	}

	BundlePage struct {
		Data       func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	CSRFTokenCredentialRequestAuth struct {
		AdditionalHeaders               func(childComplexity int) int
		AdditionalHeadersSerialized     func(childComplexity int) int
		AdditionalQueryParams           func(childComplexity int) int
		AdditionalQueryParamsSerialized func(childComplexity int) int
		Credential                      func(childComplexity int) int
		TokenEndpointURL                func(childComplexity int) int
	}

	CredentialRequestAuth struct {
		Csrf func(childComplexity int) int
	}

	Document struct {
		CreatedAt    func(childComplexity int) int
		Data         func(childComplexity int) int
		DeletedAt    func(childComplexity int) int
		Description  func(childComplexity int) int
		DisplayName  func(childComplexity int) int
		Error        func(childComplexity int) int
		FetchRequest func(childComplexity int) int
		Format       func(childComplexity int) int
		ID           func(childComplexity int) int
		Kind         func(childComplexity int) int
		Title        func(childComplexity int) int
		UpdatedAt    func(childComplexity int) int
	}

	DocumentPage struct {
		Data       func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	EventDefinition struct {
		CreatedAt   func(childComplexity int) int
		DeletedAt   func(childComplexity int) int
		Description func(childComplexity int) int
		Error       func(childComplexity int) int
		Group       func(childComplexity int) int
		ID          func(childComplexity int) int
		Name        func(childComplexity int) int
		Spec        func(childComplexity int) int
		UpdatedAt   func(childComplexity int) int
		Version     func(childComplexity int) int
	}

	EventDefinitionPage struct {
		Data       func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	EventSpec struct {
		Data         func(childComplexity int) int
		FetchRequest func(childComplexity int) int
		Format       func(childComplexity int) int
		ID           func(childComplexity int) int
		Type         func(childComplexity int) int
	}

	FetchRequest struct {
		Auth   func(childComplexity int) int
		Filter func(childComplexity int) int
		Mode   func(childComplexity int) int
		Status func(childComplexity int) int
		URL    func(childComplexity int) int
	}

	FetchRequestStatus struct {
		Condition func(childComplexity int) int
		Message   func(childComplexity int) int
		Timestamp func(childComplexity int) int
	}

	HealthCheck struct {
		Condition func(childComplexity int) int
		Message   func(childComplexity int) int
		Origin    func(childComplexity int) int
		Timestamp func(childComplexity int) int
		Type      func(childComplexity int) int
	}

	HealthCheckPage struct {
		Data       func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	IntSysSystemAuth struct {
		Auth func(childComplexity int) int
		ID   func(childComplexity int) int
	}

	IntegrationSystem struct {
		Auths       func(childComplexity int) int
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		Name        func(childComplexity int) int
	}

	IntegrationSystemPage struct {
		Data       func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	Label struct {
		Key   func(childComplexity int) int
		Value func(childComplexity int) int
	}

	LabelDefinition struct {
		Key    func(childComplexity int) int
		Schema func(childComplexity int) int
	}

	Mutation struct {
		AddAPIDefinitionToBundle                      func(childComplexity int, bundleID string, in APIDefinitionInput) int
		AddBundle                                     func(childComplexity int, applicationID string, in BundleCreateInput) int
		AddDocumentToBundle                           func(childComplexity int, bundleID string, in DocumentInput) int
		AddEventDefinitionToBundle                    func(childComplexity int, bundleID string, in EventDefinitionInput) int
		AddWebhook                                    func(childComplexity int, applicationID *string, applicationTemplateID *string, in WebhookInput) int
		CreateApplicationTemplate                     func(childComplexity int, in ApplicationTemplateInput) int
		CreateAutomaticScenarioAssignment             func(childComplexity int, in AutomaticScenarioAssignmentSetInput) int
		CreateLabelDefinition                         func(childComplexity int, in LabelDefinitionInput) int
		DeleteAPIDefinition                           func(childComplexity int, id string) int
		DeleteApplicationLabel                        func(childComplexity int, applicationID string, key string) int
		DeleteApplicationTemplate                     func(childComplexity int, id string) int
		DeleteAutomaticScenarioAssignmentForScenario  func(childComplexity int, scenarioName string) int
		DeleteAutomaticScenarioAssignmentsForSelector func(childComplexity int, selector LabelSelectorInput) int
		DeleteBundle                                  func(childComplexity int, id string) int
		DeleteBundleInstanceAuth                      func(childComplexity int, authID string) int
		DeleteDefaultEventingForApplication           func(childComplexity int, appID string) int
		DeleteDocument                                func(childComplexity int, id string) int
		DeleteEventDefinition                         func(childComplexity int, id string) int
		DeleteLabelDefinition                         func(childComplexity int, key string, deleteRelatedLabels *bool) int
		DeleteRuntimeLabel                            func(childComplexity int, runtimeID string, key string) int
		DeleteSystemAuthForApplication                func(childComplexity int, authID string) int
		DeleteSystemAuthForIntegrationSystem          func(childComplexity int, authID string) int
		DeleteSystemAuthForRuntime                    func(childComplexity int, authID string) int
		DeleteWebhook                                 func(childComplexity int, webhookID string) int
		RefetchAPISpec                                func(childComplexity int, apiID string) int
		RefetchEventDefinitionSpec                    func(childComplexity int, eventID string) int
		RegisterApplication                           func(childComplexity int, in ApplicationRegisterInput, mode *OperationMode) int
		RegisterApplicationFromTemplate               func(childComplexity int, in ApplicationFromTemplateInput) int
		RegisterIntegrationSystem                     func(childComplexity int, in IntegrationSystemInput) int
		RegisterRuntime                               func(childComplexity int, in RuntimeInput) int
		RegisterRuntimeContext                        func(childComplexity int, in RuntimeContextInput) int
		RequestBundleInstanceAuthCreation             func(childComplexity int, bundleID string, in BundleInstanceAuthRequestInput) int
		RequestBundleInstanceAuthDeletion             func(childComplexity int, authID string) int
		RequestClientCredentialsForApplication        func(childComplexity int, id string) int
		RequestClientCredentialsForIntegrationSystem  func(childComplexity int, id string) int
		RequestClientCredentialsForRuntime            func(childComplexity int, id string) int
		RequestOneTimeTokenForApplication             func(childComplexity int, id string) int
		RequestOneTimeTokenForRuntime                 func(childComplexity int, id string) int
		SetApplicationLabel                           func(childComplexity int, applicationID string, key string, value interface{}) int
		SetBundleInstanceAuth                         func(childComplexity int, authID string, in BundleInstanceAuthSetInput) int
		SetDefaultEventingForApplication              func(childComplexity int, appID string, runtimeID string) int
		SetRuntimeLabel                               func(childComplexity int, runtimeID string, key string, value interface{}) int
		UnregisterApplication                         func(childComplexity int, id string, mode *OperationMode) int
		UnregisterIntegrationSystem                   func(childComplexity int, id string) int
		UnregisterRuntime                             func(childComplexity int, id string) int
		UnregisterRuntimeContext                      func(childComplexity int, id string) int
		UpdateAPIDefinition                           func(childComplexity int, id string, in APIDefinitionInput) int
		UpdateApplication                             func(childComplexity int, id string, in ApplicationUpdateInput) int
		UpdateApplicationTemplate                     func(childComplexity int, id string, in ApplicationTemplateUpdateInput) int
		UpdateBundle                                  func(childComplexity int, id string, in BundleUpdateInput) int
		UpdateEventDefinition                         func(childComplexity int, id string, in EventDefinitionInput) int
		UpdateIntegrationSystem                       func(childComplexity int, id string, in IntegrationSystemInput) int
		UpdateLabelDefinition                         func(childComplexity int, in LabelDefinitionInput) int
		UpdateRuntime                                 func(childComplexity int, id string, in RuntimeInput) int
		UpdateRuntimeContext                          func(childComplexity int, id string, in RuntimeContextInput) int
		UpdateWebhook                                 func(childComplexity int, webhookID string, in WebhookInput) int
	}

	OAuthCredentialData struct {
		ClientID     func(childComplexity int) int
		ClientSecret func(childComplexity int) int
		URL          func(childComplexity int) int
	}

	OneTimeTokenForApplication struct {
		ConnectorURL       func(childComplexity int) int
		LegacyConnectorURL func(childComplexity int) int
		Raw                func(childComplexity int) int
		RawEncoded         func(childComplexity int) int
		Token              func(childComplexity int) int
	}

	OneTimeTokenForRuntime struct {
		ConnectorURL func(childComplexity int) int
		Raw          func(childComplexity int) int
		RawEncoded   func(childComplexity int) int
		Token        func(childComplexity int) int
	}

	PageInfo struct {
		EndCursor   func(childComplexity int) int
		HasNextPage func(childComplexity int) int
		StartCursor func(childComplexity int) int
	}

	PlaceholderDefinition struct {
		Description func(childComplexity int) int
		Name        func(childComplexity int) int
	}

	Query struct {
		Application                             func(childComplexity int, id string) int
		ApplicationTemplate                     func(childComplexity int, id string) int
		ApplicationTemplates                    func(childComplexity int, first *int, after *PageCursor) int
		Applications                            func(childComplexity int, filter []*LabelFilter, first *int, after *PageCursor) int
		ApplicationsForRuntime                  func(childComplexity int, runtimeID string, first *int, after *PageCursor) int
		AutomaticScenarioAssignmentForScenario  func(childComplexity int, scenarioName string) int
		AutomaticScenarioAssignments            func(childComplexity int, first *int, after *PageCursor) int
		AutomaticScenarioAssignmentsForSelector func(childComplexity int, selector LabelSelectorInput) int
		BundleByInstanceAuth                    func(childComplexity int, authID string) int
		BundleInstanceAuth                      func(childComplexity int, id string) int
		HealthChecks                            func(childComplexity int, types []HealthCheckType, origin *string, first *int, after *PageCursor) int
		IntegrationSystem                       func(childComplexity int, id string) int
		IntegrationSystems                      func(childComplexity int, first *int, after *PageCursor) int
		LabelDefinition                         func(childComplexity int, key string) int
		LabelDefinitions                        func(childComplexity int) int
		Runtime                                 func(childComplexity int, id string) int
		RuntimeContext                          func(childComplexity int, id string) int
		RuntimeContexts                         func(childComplexity int, filter []*LabelFilter, first *int, after *PageCursor) int
		Runtimes                                func(childComplexity int, filter []*LabelFilter, first *int, after *PageCursor) int
		TenantByExternalID                      func(childComplexity int, id string) int
		Tenants                                 func(childComplexity int) int
		Viewer                                  func(childComplexity int) int
	}

	Runtime struct {
		Auths                 func(childComplexity int) int
		Description           func(childComplexity int) int
		EventingConfiguration func(childComplexity int) int
		ID                    func(childComplexity int) int
		Labels                func(childComplexity int, key *string) int
		Metadata              func(childComplexity int) int
		Name                  func(childComplexity int) int
		Status                func(childComplexity int) int
	}

	RuntimeContext struct {
		ID     func(childComplexity int) int
		Key    func(childComplexity int) int
		Labels func(childComplexity int, key *string) int
		Value  func(childComplexity int) int
	}

	RuntimeContextPage struct {
		Data       func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	RuntimeEventingConfiguration struct {
		DefaultURL func(childComplexity int) int
	}

	RuntimeMetadata struct {
		CreationTimestamp func(childComplexity int) int
	}

	RuntimePage struct {
		Data       func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	RuntimeStatus struct {
		Condition func(childComplexity int) int
		Timestamp func(childComplexity int) int
	}

	RuntimeSystemAuth struct {
		Auth func(childComplexity int) int
		ID   func(childComplexity int) int
	}

	Tenant struct {
		ID          func(childComplexity int) int
		Initialized func(childComplexity int) int
		InternalID  func(childComplexity int) int
		Labels      func(childComplexity int, key *string) int
		Name        func(childComplexity int) int
	}

	Version struct {
		Deprecated      func(childComplexity int) int
		DeprecatedSince func(childComplexity int) int
		ForRemoval      func(childComplexity int) int
		Value           func(childComplexity int) int
	}

	Viewer struct {
		ID   func(childComplexity int) int
		Type func(childComplexity int) int
	}

	Webhook struct {
		ApplicationID         func(childComplexity int) int
		ApplicationTemplateID func(childComplexity int) int
		Auth                  func(childComplexity int) int
		CorrelationIDKey      func(childComplexity int) int
		HeaderTemplate        func(childComplexity int) int
		ID                    func(childComplexity int) int
		InputTemplate         func(childComplexity int) int
		IntegrationSystemID   func(childComplexity int) int
		Mode                  func(childComplexity int) int
		OutputTemplate        func(childComplexity int) int
		RetryInterval         func(childComplexity int) int
		RuntimeID             func(childComplexity int) int
		StatusTemplate        func(childComplexity int) int
		Timeout               func(childComplexity int) int
		Type                  func(childComplexity int) int
		URL                   func(childComplexity int) int
		URLTemplate           func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type CredentialData

type CredentialData interface {
	IsCredentialData()
}

type CredentialDataInput

type CredentialDataInput struct {
	Basic *BasicCredentialDataInput `json:"basic"`
	Oauth *OAuthCredentialDataInput `json:"oauth"`
}

**Validation:** basic or oauth field required

func (CredentialDataInput) Validate

func (i CredentialDataInput) Validate() error

Validate missing godoc

type CredentialRequestAuth

type CredentialRequestAuth struct {
	Csrf *CSRFTokenCredentialRequestAuth `json:"csrf"`
}

type CredentialRequestAuthInput

type CredentialRequestAuthInput struct {
	// **Validation:** required
	Csrf *CSRFTokenCredentialRequestAuthInput `json:"csrf"`
}

func (CredentialRequestAuthInput) Validate

func (i CredentialRequestAuthInput) Validate() error

Validate missing godoc

type DirectiveRoot

type DirectiveRoot struct {
	Async       func(ctx context.Context, obj interface{}, next graphql.Resolver, operationType OperationType, webhookType *WebhookType, idField *string) (res interface{}, err error)
	HasScenario func(ctx context.Context, obj interface{}, next graphql.Resolver, applicationProvider string, idField string) (res interface{}, err error)
	HasScopes   func(ctx context.Context, obj interface{}, next graphql.Resolver, path string) (res interface{}, err error)
	Sanitize    func(ctx context.Context, obj interface{}, next graphql.Resolver, path string) (res interface{}, err error)
	Validate    func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
}

type Document

type Document struct {
	BundleID    string         `json:"bundleID"`
	Title       string         `json:"title"`
	DisplayName string         `json:"displayName"`
	Description string         `json:"description"`
	Format      DocumentFormat `json:"format"`
	// for example Service Class, API etc
	Kind *string `json:"kind"`
	Data *CLOB   `json:"data"`
	*BaseEntity
}

Document missing godoc

func (*Document) GetType

func (e *Document) GetType() resource.Type

GetType missing godoc

type DocumentExt

type DocumentExt struct {
	Document
	FetchRequest *FetchRequest `json:"fetchRequest"`
}

DocumentExt missing godoc

type DocumentFormat

type DocumentFormat string
const (
	DocumentFormatMarkdown DocumentFormat = "MARKDOWN"
)

func (DocumentFormat) IsValid

func (e DocumentFormat) IsValid() bool

func (DocumentFormat) MarshalGQL

func (e DocumentFormat) MarshalGQL(w io.Writer)

func (DocumentFormat) String

func (e DocumentFormat) String() string

func (*DocumentFormat) UnmarshalGQL

func (e *DocumentFormat) UnmarshalGQL(v interface{}) error

type DocumentInput

type DocumentInput struct {
	// **Validation:** max=128
	Title string `json:"title"`
	// **Validation:** max=128
	DisplayName string `json:"displayName"`
	// **Validation:** max=2000
	Description string         `json:"description"`
	Format      DocumentFormat `json:"format"`
	// **Validation:** max=256
	Kind         *string            `json:"kind"`
	Data         *CLOB              `json:"data"`
	FetchRequest *FetchRequestInput `json:"fetchRequest"`
}

func (DocumentInput) Validate

func (i DocumentInput) Validate() error

Validate missing godoc

type DocumentPage

type DocumentPage struct {
	Data       []*Document `json:"data"`
	PageInfo   *PageInfo   `json:"pageInfo"`
	TotalCount int         `json:"totalCount"`
}

func (DocumentPage) IsPageable

func (DocumentPage) IsPageable()

type DocumentPageExt

type DocumentPageExt struct {
	DocumentPage
	Data []*DocumentExt `json:"data"`
}

DocumentPageExt is an extended type used by external API

type DocumentResolver

type DocumentResolver interface {
	FetchRequest(ctx context.Context, obj *Document) (*FetchRequest, error)
}

type Entity

type Entity interface {
	GetID() string
	GetType() resource.Type
}

Entity missing godoc

type EventAPIDefinitionExt

type EventAPIDefinitionExt struct {
	EventDefinition
	Spec *EventAPISpecExt `json:"spec"`
}

EventAPIDefinitionExt missing godoc

type EventAPIDefinitionPageExt

type EventAPIDefinitionPageExt struct {
	EventDefinitionPage
	Data []*EventAPIDefinitionExt `json:"data"`
}

EventAPIDefinitionPageExt is an extended types used by external API

type EventAPISpecExt

type EventAPISpecExt struct {
	EventSpec
	FetchRequest *FetchRequest `json:"fetchRequest"`
}

EventAPISpecExt missing godoc

type EventDefinition

type EventDefinition struct {
	BundleID    string  `json:"bundleID"`
	Name        string  `json:"name"`
	Description *string `json:"description"`
	// group allows you to find the same API but in different version
	Group   *string    `json:"group"`
	Spec    *EventSpec `json:"spec"`
	Version *Version   `json:"version"`
	*BaseEntity
}

EventDefinition missing godoc

func (*EventDefinition) GetType

func (e *EventDefinition) GetType() resource.Type

GetType missing godoc

type EventDefinitionInput

type EventDefinitionInput struct {
	// **Validation:** ASCII printable characters, max=100
	Name string `json:"name"`
	// **Validation:** max=2000
	Description *string         `json:"description"`
	Spec        *EventSpecInput `json:"spec"`
	// **Validation:** max=36
	Group   *string       `json:"group"`
	Version *VersionInput `json:"version"`
}

func (EventDefinitionInput) Validate

func (i EventDefinitionInput) Validate() error

Validate missing godoc

type EventDefinitionPage

type EventDefinitionPage struct {
	Data       []*EventDefinition `json:"data"`
	PageInfo   *PageInfo          `json:"pageInfo"`
	TotalCount int                `json:"totalCount"`
}

func (EventDefinitionPage) IsPageable

func (EventDefinitionPage) IsPageable()

type EventSpec

type EventSpec struct {
	ID           string        `json:"id"`
	Data         *CLOB         `json:"data"`
	Type         EventSpecType `json:"type"`
	Format       SpecFormat    `json:"format"`
	DefinitionID string        // Needed to resolve FetchRequest for given APISpec
}

EventSpec missing godoc

type EventSpecInput

type EventSpecInput struct {
	Data         *CLOB              `json:"data"`
	Type         EventSpecType      `json:"type"`
	Format       SpecFormat         `json:"format"`
	FetchRequest *FetchRequestInput `json:"fetchRequest"`
}

**Validation:** - data or fetchRequest required - for ASYNC_API type, accepted formats are YAML and JSON

func (EventSpecInput) Validate

func (i EventSpecInput) Validate() error

Validate missing godoc

type EventSpecResolver

type EventSpecResolver interface {
	FetchRequest(ctx context.Context, obj *EventSpec) (*FetchRequest, error)
}

type EventSpecType

type EventSpecType string
const (
	EventSpecTypeAsyncAPI EventSpecType = "ASYNC_API"
)

func (EventSpecType) IsValid

func (e EventSpecType) IsValid() bool

func (EventSpecType) MarshalGQL

func (e EventSpecType) MarshalGQL(w io.Writer)

func (EventSpecType) String

func (e EventSpecType) String() string

func (*EventSpecType) UnmarshalGQL

func (e *EventSpecType) UnmarshalGQL(v interface{}) error

type FetchMode

type FetchMode string
const (
	FetchModeSingle FetchMode = "SINGLE"
	FetchModeBundle FetchMode = "BUNDLE"
	FetchModeIndex  FetchMode = "INDEX"
)

func (FetchMode) IsValid

func (e FetchMode) IsValid() bool

func (FetchMode) MarshalGQL

func (e FetchMode) MarshalGQL(w io.Writer)

func (FetchMode) String

func (e FetchMode) String() string

func (*FetchMode) UnmarshalGQL

func (e *FetchMode) UnmarshalGQL(v interface{}) error

type FetchRequest

type FetchRequest struct {
	URL    string              `json:"url"`
	Auth   *Auth               `json:"auth"`
	Mode   FetchMode           `json:"mode"`
	Filter *string             `json:"filter"`
	Status *FetchRequestStatus `json:"status"`
}

Compass performs fetch to validate if request is correct and stores a copy

type FetchRequestInput

type FetchRequestInput struct {
	// **Validation:** valid URL, max=256
	URL string `json:"url"`
	// Currently unsupported, providing it will result in a failure
	Auth *AuthInput `json:"auth"`
	// Currently unsupported, providing it will result in a failure
	Mode *FetchMode `json:"mode"`
	// **Validation:** max=256
	// Currently unsupported, providing it will result in a failure
	Filter *string `json:"filter"`
}

func (FetchRequestInput) Validate

func (i FetchRequestInput) Validate() error

Validate missing godoc

type FetchRequestStatus

type FetchRequestStatus struct {
	Condition FetchRequestStatusCondition `json:"condition"`
	Message   *string                     `json:"message"`
	Timestamp Timestamp                   `json:"timestamp"`
}

type FetchRequestStatusCondition

type FetchRequestStatusCondition string
const (
	FetchRequestStatusConditionInitial   FetchRequestStatusCondition = "INITIAL"
	FetchRequestStatusConditionSucceeded FetchRequestStatusCondition = "SUCCEEDED"
	FetchRequestStatusConditionFailed    FetchRequestStatusCondition = "FAILED"
)

func (FetchRequestStatusCondition) IsValid

func (e FetchRequestStatusCondition) IsValid() bool

func (FetchRequestStatusCondition) MarshalGQL

func (e FetchRequestStatusCondition) MarshalGQL(w io.Writer)

func (FetchRequestStatusCondition) String

func (*FetchRequestStatusCondition) UnmarshalGQL

func (e *FetchRequestStatusCondition) UnmarshalGQL(v interface{}) error

type HTTPHeaders

type HTTPHeaders map[string][]string

HTTPHeaders missing godoc

func (HTTPHeaders) MarshalGQL

func (y HTTPHeaders) MarshalGQL(w io.Writer)

MarshalGQL missing godoc

func (*HTTPHeaders) UnmarshalGQL

func (y *HTTPHeaders) UnmarshalGQL(v interface{}) error

UnmarshalGQL missing godoc

type HTTPHeadersSerialized

type HTTPHeadersSerialized string

HTTPHeadersSerialized missing godoc

func NewHTTPHeadersSerialized

func NewHTTPHeadersSerialized(h map[string][]string) (HTTPHeadersSerialized, error)

NewHTTPHeadersSerialized missing godoc

func (*HTTPHeadersSerialized) Unmarshal

func (y *HTTPHeadersSerialized) Unmarshal() (map[string][]string, error)

Unmarshal missing godoc

type HealthCheck

type HealthCheck struct {
	Type      HealthCheckType            `json:"type"`
	Condition HealthCheckStatusCondition `json:"condition"`
	Origin    *string                    `json:"origin"`
	Message   *string                    `json:"message"`
	Timestamp Timestamp                  `json:"timestamp"`
}

type HealthCheckPage

type HealthCheckPage struct {
	Data       []*HealthCheck `json:"data"`
	PageInfo   *PageInfo      `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

func (HealthCheckPage) IsPageable

func (HealthCheckPage) IsPageable()

type HealthCheckStatusCondition

type HealthCheckStatusCondition string
const (
	HealthCheckStatusConditionSucceeded HealthCheckStatusCondition = "SUCCEEDED"
	HealthCheckStatusConditionFailed    HealthCheckStatusCondition = "FAILED"
)

func (HealthCheckStatusCondition) IsValid

func (e HealthCheckStatusCondition) IsValid() bool

func (HealthCheckStatusCondition) MarshalGQL

func (e HealthCheckStatusCondition) MarshalGQL(w io.Writer)

func (HealthCheckStatusCondition) String

func (*HealthCheckStatusCondition) UnmarshalGQL

func (e *HealthCheckStatusCondition) UnmarshalGQL(v interface{}) error

type HealthCheckType

type HealthCheckType string
const (
	HealthCheckTypeManagementPlaneApplicationHealthcheck HealthCheckType = "MANAGEMENT_PLANE_APPLICATION_HEALTHCHECK"
)

func (HealthCheckType) IsValid

func (e HealthCheckType) IsValid() bool

func (HealthCheckType) MarshalGQL

func (e HealthCheckType) MarshalGQL(w io.Writer)

func (HealthCheckType) String

func (e HealthCheckType) String() string

func (*HealthCheckType) UnmarshalGQL

func (e *HealthCheckType) UnmarshalGQL(v interface{}) error

type IntSysSystemAuth

type IntSysSystemAuth struct {
	ID   string `json:"id"`
	Auth *Auth  `json:"auth"`
}

func (IntSysSystemAuth) IsSystemAuth

func (IntSysSystemAuth) IsSystemAuth()

type IntegrationSystem

type IntegrationSystem struct {
	ID          string  `json:"id"`
	Name        string  `json:"name"`
	Description *string `json:"description"`
}

IntegrationSystem missing godoc

type IntegrationSystemExt

type IntegrationSystemExt struct {
	IntegrationSystem
	Auths []*IntSysSystemAuth `json:"auths"`
}

IntegrationSystemExt missing godoc

type IntegrationSystemInput

type IntegrationSystemInput struct {
	// **Validation:**  Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and .
	Name string `json:"name"`
	// **Validation:** max=2000
	Description *string `json:"description"`
}

func (IntegrationSystemInput) Validate

func (i IntegrationSystemInput) Validate() error

Validate missing godoc

type IntegrationSystemPage

type IntegrationSystemPage struct {
	Data       []*IntegrationSystem `json:"data"`
	PageInfo   *PageInfo            `json:"pageInfo"`
	TotalCount int                  `json:"totalCount"`
}

func (IntegrationSystemPage) IsPageable

func (IntegrationSystemPage) IsPageable()

type IntegrationSystemPageExt

type IntegrationSystemPageExt struct {
	IntegrationSystemPage
	Data []*IntegrationSystemExt `json:"data"`
}

IntegrationSystemPageExt is an extended types used by external API

type IntegrationSystemResolver

type IntegrationSystemResolver interface {
	Auths(ctx context.Context, obj *IntegrationSystem) ([]*IntSysSystemAuth, error)
}

type JSON

type JSON string

JSON missing godoc

func (JSON) MarshalGQL

func (j JSON) MarshalGQL(w io.Writer)

MarshalGQL missing godoc

func (*JSON) UnmarshalGQL

func (j *JSON) UnmarshalGQL(v interface{}) error

UnmarshalGQL missing godoc

type JSONSchema

type JSONSchema string

JSONSchema missing godoc

func MarshalSchema

func MarshalSchema(input *interface{}) (*JSONSchema, error)

MarshalSchema missing godoc

func (JSONSchema) MarshalGQL

func (j JSONSchema) MarshalGQL(w io.Writer)

MarshalGQL missing godoc

func (*JSONSchema) Unmarshal

func (j *JSONSchema) Unmarshal() (*interface{}, error)

Unmarshal missing godoc

func (*JSONSchema) UnmarshalGQL

func (j *JSONSchema) UnmarshalGQL(v interface{}) error

UnmarshalGQL missing godoc

type Label

type Label struct {
	Key   string      `json:"key"`
	Value interface{} `json:"value"`
}

type LabelDefinition

type LabelDefinition struct {
	Key    string      `json:"key"`
	Schema *JSONSchema `json:"schema"`
}

type LabelDefinitionInput

type LabelDefinitionInput struct {
	// **Validation:** max=256, alphanumeric chartacters and underscore
	Key    string      `json:"key"`
	Schema *JSONSchema `json:"schema"`
}

func (LabelDefinitionInput) Validate

func (i LabelDefinitionInput) Validate() error

Validate missing godoc

type LabelFilter

type LabelFilter struct {
	// Label key. If query for the filter is not provided, returns every object with given label key regardless of its value.
	Key string `json:"key"`
	// Optional SQL/JSON Path expression. If query is not provided, returns every object with given label key regardless of its value.
	// Currently only a limited subset of expressions is supported.
	Query *string `json:"query"`
}

type LabelInput

type LabelInput struct {
	// **Validation:** max=256, alphanumeric chartacters and underscore
	Key   string      `json:"key"`
	Value interface{} `json:"value"`
}

func (LabelInput) Validate

func (i LabelInput) Validate() error

Validate missing godoc

type LabelSelectorInput

type LabelSelectorInput struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Labels

type Labels map[string]interface{}

Labels missing godoc

func (Labels) MarshalGQL

func (y Labels) MarshalGQL(w io.Writer)

MarshalGQL missing godoc

func (*Labels) UnmarshalGQL

func (y *Labels) UnmarshalGQL(v interface{}) error

UnmarshalGQL missing godoc

type MutationResolver

type MutationResolver interface {
	RegisterApplication(ctx context.Context, in ApplicationRegisterInput, mode *OperationMode) (*Application, error)
	UpdateApplication(ctx context.Context, id string, in ApplicationUpdateInput) (*Application, error)
	UnregisterApplication(ctx context.Context, id string, mode *OperationMode) (*Application, error)
	CreateApplicationTemplate(ctx context.Context, in ApplicationTemplateInput) (*ApplicationTemplate, error)
	RegisterApplicationFromTemplate(ctx context.Context, in ApplicationFromTemplateInput) (*Application, error)
	UpdateApplicationTemplate(ctx context.Context, id string, in ApplicationTemplateUpdateInput) (*ApplicationTemplate, error)
	DeleteApplicationTemplate(ctx context.Context, id string) (*ApplicationTemplate, error)
	RegisterRuntime(ctx context.Context, in RuntimeInput) (*Runtime, error)
	UpdateRuntime(ctx context.Context, id string, in RuntimeInput) (*Runtime, error)
	UnregisterRuntime(ctx context.Context, id string) (*Runtime, error)
	RegisterRuntimeContext(ctx context.Context, in RuntimeContextInput) (*RuntimeContext, error)
	UpdateRuntimeContext(ctx context.Context, id string, in RuntimeContextInput) (*RuntimeContext, error)
	UnregisterRuntimeContext(ctx context.Context, id string) (*RuntimeContext, error)
	RegisterIntegrationSystem(ctx context.Context, in IntegrationSystemInput) (*IntegrationSystem, error)
	UpdateIntegrationSystem(ctx context.Context, id string, in IntegrationSystemInput) (*IntegrationSystem, error)
	UnregisterIntegrationSystem(ctx context.Context, id string) (*IntegrationSystem, error)
	AddWebhook(ctx context.Context, applicationID *string, applicationTemplateID *string, in WebhookInput) (*Webhook, error)
	UpdateWebhook(ctx context.Context, webhookID string, in WebhookInput) (*Webhook, error)
	DeleteWebhook(ctx context.Context, webhookID string) (*Webhook, error)
	AddAPIDefinitionToBundle(ctx context.Context, bundleID string, in APIDefinitionInput) (*APIDefinition, error)
	UpdateAPIDefinition(ctx context.Context, id string, in APIDefinitionInput) (*APIDefinition, error)
	DeleteAPIDefinition(ctx context.Context, id string) (*APIDefinition, error)
	RefetchAPISpec(ctx context.Context, apiID string) (*APISpec, error)
	RequestOneTimeTokenForRuntime(ctx context.Context, id string) (*OneTimeTokenForRuntime, error)
	RequestOneTimeTokenForApplication(ctx context.Context, id string) (*OneTimeTokenForApplication, error)
	RequestClientCredentialsForRuntime(ctx context.Context, id string) (SystemAuth, error)
	RequestClientCredentialsForApplication(ctx context.Context, id string) (SystemAuth, error)
	RequestClientCredentialsForIntegrationSystem(ctx context.Context, id string) (SystemAuth, error)
	DeleteSystemAuthForRuntime(ctx context.Context, authID string) (SystemAuth, error)
	DeleteSystemAuthForApplication(ctx context.Context, authID string) (SystemAuth, error)
	DeleteSystemAuthForIntegrationSystem(ctx context.Context, authID string) (SystemAuth, error)
	AddEventDefinitionToBundle(ctx context.Context, bundleID string, in EventDefinitionInput) (*EventDefinition, error)
	UpdateEventDefinition(ctx context.Context, id string, in EventDefinitionInput) (*EventDefinition, error)
	DeleteEventDefinition(ctx context.Context, id string) (*EventDefinition, error)
	RefetchEventDefinitionSpec(ctx context.Context, eventID string) (*EventSpec, error)
	AddDocumentToBundle(ctx context.Context, bundleID string, in DocumentInput) (*Document, error)
	DeleteDocument(ctx context.Context, id string) (*Document, error)
	CreateLabelDefinition(ctx context.Context, in LabelDefinitionInput) (*LabelDefinition, error)
	UpdateLabelDefinition(ctx context.Context, in LabelDefinitionInput) (*LabelDefinition, error)
	DeleteLabelDefinition(ctx context.Context, key string, deleteRelatedLabels *bool) (*LabelDefinition, error)
	SetApplicationLabel(ctx context.Context, applicationID string, key string, value interface{}) (*Label, error)
	DeleteApplicationLabel(ctx context.Context, applicationID string, key string) (*Label, error)
	SetRuntimeLabel(ctx context.Context, runtimeID string, key string, value interface{}) (*Label, error)
	DeleteRuntimeLabel(ctx context.Context, runtimeID string, key string) (*Label, error)
	SetDefaultEventingForApplication(ctx context.Context, appID string, runtimeID string) (*ApplicationEventingConfiguration, error)
	DeleteDefaultEventingForApplication(ctx context.Context, appID string) (*ApplicationEventingConfiguration, error)
	SetBundleInstanceAuth(ctx context.Context, authID string, in BundleInstanceAuthSetInput) (*BundleInstanceAuth, error)
	DeleteBundleInstanceAuth(ctx context.Context, authID string) (*BundleInstanceAuth, error)
	RequestBundleInstanceAuthCreation(ctx context.Context, bundleID string, in BundleInstanceAuthRequestInput) (*BundleInstanceAuth, error)
	RequestBundleInstanceAuthDeletion(ctx context.Context, authID string) (*BundleInstanceAuth, error)
	AddBundle(ctx context.Context, applicationID string, in BundleCreateInput) (*Bundle, error)
	UpdateBundle(ctx context.Context, id string, in BundleUpdateInput) (*Bundle, error)
	DeleteBundle(ctx context.Context, id string) (*Bundle, error)
	CreateAutomaticScenarioAssignment(ctx context.Context, in AutomaticScenarioAssignmentSetInput) (*AutomaticScenarioAssignment, error)
	DeleteAutomaticScenarioAssignmentForScenario(ctx context.Context, scenarioName string) (*AutomaticScenarioAssignment, error)
	DeleteAutomaticScenarioAssignmentsForSelector(ctx context.Context, selector LabelSelectorInput) ([]*AutomaticScenarioAssignment, error)
}

type OAuthCredentialData

type OAuthCredentialData struct {
	ClientID     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
	// URL for getting access token
	URL string `json:"url"`
}

func (OAuthCredentialData) IsCredentialData

func (OAuthCredentialData) IsCredentialData()

type OAuthCredentialDataInput

type OAuthCredentialDataInput struct {
	ClientID     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
	// **Validation:** valid URL
	URL string `json:"url"`
}

func (OAuthCredentialDataInput) Validate

func (i OAuthCredentialDataInput) Validate() error

Validate missing godoc

type OneTimeToken

type OneTimeToken interface {
	IsOneTimeToken()
}

type OneTimeTokenForApplication

type OneTimeTokenForApplication struct {
	TokenWithURL
	LegacyConnectorURL string `json:"legacyConnectorURL"`
}

OneTimeTokenForApplication missing godoc

func (*OneTimeTokenForApplication) IsOneTimeToken

func (t *OneTimeTokenForApplication) IsOneTimeToken()

IsOneTimeToken missing godoc

type OneTimeTokenForApplicationExt

type OneTimeTokenForApplicationExt struct {
	OneTimeTokenForApplication
	Raw        string `json:"raw"`
	RawEncoded string `json:"rawEncoded"`
}

OneTimeTokenForApplicationExt missing godoc

type OneTimeTokenForApplicationResolver

type OneTimeTokenForApplicationResolver interface {
	Raw(ctx context.Context, obj *OneTimeTokenForApplication) (*string, error)
	RawEncoded(ctx context.Context, obj *OneTimeTokenForApplication) (*string, error)
}

type OneTimeTokenForRuntime

type OneTimeTokenForRuntime struct {
	TokenWithURL
}

OneTimeTokenForRuntime missing godoc

func (*OneTimeTokenForRuntime) IsOneTimeToken

func (t *OneTimeTokenForRuntime) IsOneTimeToken()

IsOneTimeToken missing godoc

type OneTimeTokenForRuntimeExt

type OneTimeTokenForRuntimeExt struct {
	OneTimeTokenForRuntime
	Raw        string `json:"raw"`
	RawEncoded string `json:"rawEncoded"`
}

OneTimeTokenForRuntimeExt missing godoc

type OneTimeTokenForRuntimeResolver

type OneTimeTokenForRuntimeResolver interface {
	Raw(ctx context.Context, obj *OneTimeTokenForRuntime) (*string, error)
	RawEncoded(ctx context.Context, obj *OneTimeTokenForRuntime) (*string, error)
}

type OperationMode

type OperationMode string
const (
	OperationModeSync  OperationMode = "SYNC"
	OperationModeAsync OperationMode = "ASYNC"
)

func (OperationMode) IsValid

func (e OperationMode) IsValid() bool

func (OperationMode) MarshalGQL

func (e OperationMode) MarshalGQL(w io.Writer)

func (OperationMode) String

func (e OperationMode) String() string

func (*OperationMode) UnmarshalGQL

func (e *OperationMode) UnmarshalGQL(v interface{}) error

type OperationType

type OperationType string
const (
	OperationTypeCreate OperationType = "CREATE"
	OperationTypeUpdate OperationType = "UPDATE"
	OperationTypeDelete OperationType = "DELETE"
)

func (OperationType) IsValid

func (e OperationType) IsValid() bool

func (OperationType) MarshalGQL

func (e OperationType) MarshalGQL(w io.Writer)

func (OperationType) String

func (e OperationType) String() string

func (*OperationType) UnmarshalGQL

func (e *OperationType) UnmarshalGQL(v interface{}) error

type PageCursor

type PageCursor string

PageCursor missing godoc

func (PageCursor) MarshalGQL

func (y PageCursor) MarshalGQL(w io.Writer)

MarshalGQL missing godoc

func (*PageCursor) UnmarshalGQL

func (y *PageCursor) UnmarshalGQL(v interface{}) error

UnmarshalGQL missing godoc

type PageInfo

type PageInfo struct {
	StartCursor PageCursor `json:"startCursor"`
	EndCursor   PageCursor `json:"endCursor"`
	HasNextPage bool       `json:"hasNextPage"`
}

type Pageable

type Pageable interface {
	IsPageable()
}

Every query that implements pagination returns object that implements Pageable interface. To specify page details, query specify two parameters: `first` and `after`. `first` specify page size, `after` is a cursor for the next page. When requesting first page, set `after` to empty value. For requesting next page, set `after` to `pageInfo.endCursor` returned from previous query.

type PlaceholderDefinition

type PlaceholderDefinition struct {
	Name        string  `json:"name"`
	Description *string `json:"description"`
}

type PlaceholderDefinitionInput

type PlaceholderDefinitionInput struct {
	// **Validation:**  Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and .
	Name string `json:"name"`
	// **Validation:**  max=2000
	Description *string `json:"description"`
}

func (PlaceholderDefinitionInput) Validate

func (i PlaceholderDefinitionInput) Validate() error

Validate missing godoc

type QueryParams

type QueryParams map[string][]string

QueryParams missing godoc

func (QueryParams) MarshalGQL

func (y QueryParams) MarshalGQL(w io.Writer)

MarshalGQL missing godoc

func (*QueryParams) UnmarshalGQL

func (y *QueryParams) UnmarshalGQL(v interface{}) error

UnmarshalGQL missing godoc

type QueryParamsSerialized

type QueryParamsSerialized string

QueryParamsSerialized missing godoc

func NewQueryParamsSerialized

func NewQueryParamsSerialized(h map[string][]string) (QueryParamsSerialized, error)

NewQueryParamsSerialized missing godoc

func (*QueryParamsSerialized) Unmarshal

func (y *QueryParamsSerialized) Unmarshal() (map[string][]string, error)

Unmarshal missing godoc

type QueryResolver

type QueryResolver interface {
	Applications(ctx context.Context, filter []*LabelFilter, first *int, after *PageCursor) (*ApplicationPage, error)
	Application(ctx context.Context, id string) (*Application, error)
	ApplicationsForRuntime(ctx context.Context, runtimeID string, first *int, after *PageCursor) (*ApplicationPage, error)
	ApplicationTemplates(ctx context.Context, first *int, after *PageCursor) (*ApplicationTemplatePage, error)
	ApplicationTemplate(ctx context.Context, id string) (*ApplicationTemplate, error)
	Runtimes(ctx context.Context, filter []*LabelFilter, first *int, after *PageCursor) (*RuntimePage, error)
	RuntimeContexts(ctx context.Context, filter []*LabelFilter, first *int, after *PageCursor) (*RuntimeContextPage, error)
	Runtime(ctx context.Context, id string) (*Runtime, error)
	RuntimeContext(ctx context.Context, id string) (*RuntimeContext, error)
	LabelDefinitions(ctx context.Context) ([]*LabelDefinition, error)
	LabelDefinition(ctx context.Context, key string) (*LabelDefinition, error)
	BundleByInstanceAuth(ctx context.Context, authID string) (*Bundle, error)
	BundleInstanceAuth(ctx context.Context, id string) (*BundleInstanceAuth, error)
	HealthChecks(ctx context.Context, types []HealthCheckType, origin *string, first *int, after *PageCursor) (*HealthCheckPage, error)
	IntegrationSystems(ctx context.Context, first *int, after *PageCursor) (*IntegrationSystemPage, error)
	IntegrationSystem(ctx context.Context, id string) (*IntegrationSystem, error)
	Viewer(ctx context.Context) (*Viewer, error)
	Tenants(ctx context.Context) ([]*Tenant, error)
	TenantByExternalID(ctx context.Context, id string) (*Tenant, error)
	AutomaticScenarioAssignmentForScenario(ctx context.Context, scenarioName string) (*AutomaticScenarioAssignment, error)
	AutomaticScenarioAssignmentsForSelector(ctx context.Context, selector LabelSelectorInput) ([]*AutomaticScenarioAssignment, error)
	AutomaticScenarioAssignments(ctx context.Context, first *int, after *PageCursor) (*AutomaticScenarioAssignmentPage, error)
}

type ResolverRoot

type ResolverRoot interface {
	APISpec() APISpecResolver
	Application() ApplicationResolver
	ApplicationTemplate() ApplicationTemplateResolver
	Bundle() BundleResolver
	Document() DocumentResolver
	EventSpec() EventSpecResolver
	IntegrationSystem() IntegrationSystemResolver
	Mutation() MutationResolver
	OneTimeTokenForApplication() OneTimeTokenForApplicationResolver
	OneTimeTokenForRuntime() OneTimeTokenForRuntimeResolver
	Query() QueryResolver
	Runtime() RuntimeResolver
	RuntimeContext() RuntimeContextResolver
	Tenant() TenantResolver
}

type Runtime

type Runtime struct {
	ID                    string                        `json:"id"`
	Name                  string                        `json:"name"`
	Description           *string                       `json:"description"`
	Status                *RuntimeStatus                `json:"status"`
	Metadata              *RuntimeMetadata              `json:"metadata"`
	EventingConfiguration *RuntimeEventingConfiguration `json:"eventingConfiguration"`
}

Runtime missing godoc

type RuntimeContext

type RuntimeContext struct {
	ID    string `json:"id"`
	Key   string `json:"key"`
	Value string `json:"value"`
}

RuntimeContext missing godoc

type RuntimeContextExt

type RuntimeContextExt struct {
	RuntimeContext
	Labels Labels `json:"labels"`
}

RuntimeContextExt missing godoc

type RuntimeContextInput

type RuntimeContextInput struct {
	// **Validation:** required max=512, alphanumeric chartacters and underscore
	Key   string `json:"key"`
	Value string `json:"value"`
	// **Validation:** key: required, alphanumeric with underscore
	Labels Labels `json:"labels"`
}

func (RuntimeContextInput) Validate

func (i RuntimeContextInput) Validate() error

Validate missing godoc

type RuntimeContextPage

type RuntimeContextPage struct {
	Data       []*RuntimeContext `json:"data"`
	PageInfo   *PageInfo         `json:"pageInfo"`
	TotalCount int               `json:"totalCount"`
}

func (RuntimeContextPage) IsPageable

func (RuntimeContextPage) IsPageable()

type RuntimeContextPageExt

type RuntimeContextPageExt struct {
	RuntimeContextPage
	Data []*RuntimeContextExt `json:"data"`
}

RuntimeContextPageExt is an extended types used by external API

type RuntimeContextResolver

type RuntimeContextResolver interface {
	Labels(ctx context.Context, obj *RuntimeContext, key *string) (Labels, error)
}

type RuntimeEventingConfiguration

type RuntimeEventingConfiguration struct {
	DefaultURL string `json:"defaultURL"`
}

type RuntimeExt

type RuntimeExt struct {
	Runtime
	Labels Labels `json:"labels"`
	// Returns array of authentication details for Runtime. For now at most one element in array will be returned.
	Auths []*RuntimeSystemAuth `json:"auths"`
}

RuntimeExt missing godoc

type RuntimeInput

type RuntimeInput struct {
	// **Validation:**  Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and .
	Name string `json:"name"`
	// **Validation:**  max=2000
	Description *string `json:"description"`
	// **Validation:** key: required, alphanumeric with underscore
	Labels          Labels                  `json:"labels"`
	StatusCondition *RuntimeStatusCondition `json:"statusCondition"`
}

func (RuntimeInput) Validate

func (i RuntimeInput) Validate() error

Validate missing godoc

type RuntimeMetadata

type RuntimeMetadata struct {
	CreationTimestamp Timestamp `json:"creationTimestamp"`
}

type RuntimePage

type RuntimePage struct {
	Data       []*Runtime `json:"data"`
	PageInfo   *PageInfo  `json:"pageInfo"`
	TotalCount int        `json:"totalCount"`
}

func (RuntimePage) IsPageable

func (RuntimePage) IsPageable()

type RuntimePageExt

type RuntimePageExt struct {
	RuntimePage
	Data []*RuntimeExt `json:"data"`
}

RuntimePageExt is an extended types used by external API

type RuntimeResolver

type RuntimeResolver interface {
	Labels(ctx context.Context, obj *Runtime, key *string) (Labels, error)

	Auths(ctx context.Context, obj *Runtime) ([]*RuntimeSystemAuth, error)
	EventingConfiguration(ctx context.Context, obj *Runtime) (*RuntimeEventingConfiguration, error)
}

type RuntimeStatus

type RuntimeStatus struct {
	Condition RuntimeStatusCondition `json:"condition"`
	Timestamp Timestamp              `json:"timestamp"`
}

type RuntimeStatusCondition

type RuntimeStatusCondition string
const (
	RuntimeStatusConditionInitial      RuntimeStatusCondition = "INITIAL"
	RuntimeStatusConditionProvisioning RuntimeStatusCondition = "PROVISIONING"
	RuntimeStatusConditionConnected    RuntimeStatusCondition = "CONNECTED"
	RuntimeStatusConditionFailed       RuntimeStatusCondition = "FAILED"
)

func (RuntimeStatusCondition) IsValid

func (e RuntimeStatusCondition) IsValid() bool

func (RuntimeStatusCondition) MarshalGQL

func (e RuntimeStatusCondition) MarshalGQL(w io.Writer)

func (RuntimeStatusCondition) String

func (e RuntimeStatusCondition) String() string

func (*RuntimeStatusCondition) UnmarshalGQL

func (e *RuntimeStatusCondition) UnmarshalGQL(v interface{}) error

type RuntimeSystemAuth

type RuntimeSystemAuth struct {
	ID   string `json:"id"`
	Auth *Auth  `json:"auth"`
}

func (RuntimeSystemAuth) IsSystemAuth

func (RuntimeSystemAuth) IsSystemAuth()

type SpecFormat

type SpecFormat string
const (
	SpecFormatYaml SpecFormat = "YAML"
	SpecFormatJSON SpecFormat = "JSON"
	SpecFormatXML  SpecFormat = "XML"
)

func (SpecFormat) IsValid

func (e SpecFormat) IsValid() bool

func (SpecFormat) MarshalGQL

func (e SpecFormat) MarshalGQL(w io.Writer)

func (SpecFormat) String

func (e SpecFormat) String() string

func (*SpecFormat) UnmarshalGQL

func (e *SpecFormat) UnmarshalGQL(v interface{}) error

type SystemAuth

type SystemAuth interface {
	IsSystemAuth()
}

type TemplateValueInput

type TemplateValueInput struct {
	// **Validation:**  Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and .
	Placeholder string `json:"placeholder"`
	Value       string `json:"value"`
}

func (TemplateValueInput) Validate

func (i TemplateValueInput) Validate() error

Validate missing godoc

type Tenant

type Tenant struct {
	ID          string  `json:"id"`
	InternalID  string  `json:"internalID"`
	Name        *string `json:"name"`
	Initialized *bool   `json:"initialized"`
	Labels      Labels  `json:"labels"`
}

Tenant missing godoc

type TenantResolver

type TenantResolver interface {
	Labels(ctx context.Context, obj *Tenant, key *string) (Labels, error)
}

type Timestamp

type Timestamp time.Time

Timestamp missing godoc

func (Timestamp) MarshalGQL

func (y Timestamp) MarshalGQL(w io.Writer)

MarshalGQL missing godoc

func (Timestamp) MarshalJSON

func (y Timestamp) MarshalJSON() ([]byte, error)

MarshalJSON missing godoc

func (*Timestamp) UnmarshalGQL

func (y *Timestamp) UnmarshalGQL(v interface{}) error

UnmarshalGQL missing godoc

func (*Timestamp) UnmarshalJSON

func (y *Timestamp) UnmarshalJSON(data []byte) error

UnmarshalJSON missing godoc

type TokenWithURL

type TokenWithURL struct {
	Token        string `json:"token"`
	ConnectorURL string `json:"connectorURL"`
}

TokenWithURL missing godoc

type Version

type Version struct {
	// for example 4.6
	Value      string `json:"value"`
	Deprecated *bool  `json:"deprecated"`
	// for example 4.5
	DeprecatedSince *string `json:"deprecatedSince"`
	// if true, will be removed in the next version
	ForRemoval *bool `json:"forRemoval"`
}

type VersionInput

type VersionInput struct {
	// **Validation:** max=256
	Value      string `json:"value"`
	Deprecated *bool  `json:"deprecated"`
	// **Validation:** max=256
	DeprecatedSince *string `json:"deprecatedSince"`
	ForRemoval      *bool   `json:"forRemoval"`
}

func (VersionInput) Validate

func (i VersionInput) Validate() error

Validate missing godoc

type Viewer

type Viewer struct {
	ID   string     `json:"id"`
	Type ViewerType `json:"type"`
}

type ViewerType

type ViewerType string
const (
	ViewerTypeRuntime           ViewerType = "RUNTIME"
	ViewerTypeApplication       ViewerType = "APPLICATION"
	ViewerTypeIntegrationSystem ViewerType = "INTEGRATION_SYSTEM"
	ViewerTypeUser              ViewerType = "USER"
)

func (ViewerType) IsValid

func (e ViewerType) IsValid() bool

func (ViewerType) MarshalGQL

func (e ViewerType) MarshalGQL(w io.Writer)

func (ViewerType) String

func (e ViewerType) String() string

func (*ViewerType) UnmarshalGQL

func (e *ViewerType) UnmarshalGQL(v interface{}) error

type Webhook

type Webhook struct {
	ID                    string       `json:"id"`
	ApplicationID         *string      `json:"applicationID"`
	ApplicationTemplateID *string      `json:"applicationTemplateID"`
	RuntimeID             *string      `json:"runtimeID"`
	IntegrationSystemID   *string      `json:"integrationSystemID"`
	Type                  WebhookType  `json:"type"`
	Mode                  *WebhookMode `json:"mode"`
	CorrelationIDKey      *string      `json:"correlationIdKey"`
	RetryInterval         *int         `json:"retryInterval"`
	Timeout               *int         `json:"timeout"`
	URL                   *string      `json:"url"`
	Auth                  *Auth        `json:"auth"`
	URLTemplate           *string      `json:"urlTemplate"`
	InputTemplate         *string      `json:"inputTemplate"`
	HeaderTemplate        *string      `json:"headerTemplate"`
	OutputTemplate        *string      `json:"outputTemplate"`
	StatusTemplate        *string      `json:"statusTemplate"`
}

type WebhookInput

type WebhookInput struct {
	Type WebhookType `json:"type"`
	// **Validation:** valid URL, max=256
	URL              *string      `json:"url"`
	Auth             *AuthInput   `json:"auth"`
	Mode             *WebhookMode `json:"mode"`
	CorrelationIDKey *string      `json:"correlationIdKey"`
	RetryInterval    *int         `json:"retryInterval"`
	Timeout          *int         `json:"timeout"`
	URLTemplate      *string      `json:"urlTemplate"`
	InputTemplate    *string      `json:"inputTemplate"`
	HeaderTemplate   *string      `json:"headerTemplate"`
	OutputTemplate   *string      `json:"outputTemplate"`
	StatusTemplate   *string      `json:"statusTemplate"`
}

func (WebhookInput) Validate

func (i WebhookInput) Validate() error

Validate missing godoc

type WebhookMode

type WebhookMode string
const (
	WebhookModeSync  WebhookMode = "SYNC"
	WebhookModeAsync WebhookMode = "ASYNC"
)

func (WebhookMode) IsValid

func (e WebhookMode) IsValid() bool

func (WebhookMode) MarshalGQL

func (e WebhookMode) MarshalGQL(w io.Writer)

func (WebhookMode) String

func (e WebhookMode) String() string

func (*WebhookMode) UnmarshalGQL

func (e *WebhookMode) UnmarshalGQL(v interface{}) error

type WebhookType

type WebhookType string
const (
	WebhookTypeConfigurationChanged  WebhookType = "CONFIGURATION_CHANGED"
	WebhookTypeRegisterApplication   WebhookType = "REGISTER_APPLICATION"
	WebhookTypeUnregisterApplication WebhookType = "UNREGISTER_APPLICATION"
	WebhookTypeOpenResourceDiscovery WebhookType = "OPEN_RESOURCE_DISCOVERY"
)

func (WebhookType) IsValid

func (e WebhookType) IsValid() bool

func (WebhookType) MarshalGQL

func (e WebhookType) MarshalGQL(w io.Writer)

func (WebhookType) String

func (e WebhookType) String() string

func (*WebhookType) UnmarshalGQL

func (e *WebhookType) UnmarshalGQL(v interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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