gqlschema

package
Version: v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeExecutableSchema

func MakeExecutableSchema(resolvers Resolvers) graphql.ExecutableSchema

func MarshalTimestamp

func MarshalTimestamp(t time.Time) graphql.Marshaler

func UnmarshalTimestamp

func UnmarshalTimestamp(v interface{}) (time.Time, error)

Types

type API

type API struct {
	Name                   string
	Hostname               string
	Service                Service
	AuthenticationPolicies []AuthenticationPolicy
}

type AuthenticationPolicy

type AuthenticationPolicy struct {
	Type    AuthenticationPolicyType `json:"type"`
	Issuer  string                   `json:"issuer"`
	JwksURI string                   `json:"jwksURI"`
}

type AuthenticationPolicyType

type AuthenticationPolicyType string
const (
	AuthenticationPolicyTypeJwt AuthenticationPolicyType = "JWT"
)

func (AuthenticationPolicyType) IsValid

func (e AuthenticationPolicyType) IsValid() bool

func (AuthenticationPolicyType) MarshalGQL

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

func (AuthenticationPolicyType) String

func (e AuthenticationPolicyType) String() string

func (*AuthenticationPolicyType) UnmarshalGQL

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

type BindingUsageReferenceType

type BindingUsageReferenceType string
const (
	BindingUsageReferenceTypeDeployment BindingUsageReferenceType = "DEPLOYMENT"
	BindingUsageReferenceTypeFunction   BindingUsageReferenceType = "FUNCTION"
)

func (BindingUsageReferenceType) IsValid

func (e BindingUsageReferenceType) IsValid() bool

func (BindingUsageReferenceType) MarshalGQL

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

func (BindingUsageReferenceType) String

func (e BindingUsageReferenceType) String() string

func (*BindingUsageReferenceType) UnmarshalGQL

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

type ConnectorService

type ConnectorService struct {
	Url string `json:"url"`
}

type Container

type Container struct {
	Name  string `json:"name"`
	Image string `json:"image"`
}

type CreateServiceBindingOutput

type CreateServiceBindingOutput struct {
	Name                string `json:"name"`
	ServiceInstanceName string `json:"serviceInstanceName"`
	Environment         string `json:"environment"`
}

type CreateServiceBindingUsageInput

type CreateServiceBindingUsageInput struct {
	Name              string                              `json:"name"`
	Environment       string                              `json:"environment"`
	ServiceBindingRef ServiceBindingRefInput              `json:"serviceBindingRef"`
	UsedBy            LocalObjectReferenceInput           `json:"usedBy"`
	Parameters        *ServiceBindingUsageParametersInput `json:"parameters"`
}

func UnmarshalCreateServiceBindingUsageInput

func UnmarshalCreateServiceBindingUsageInput(v interface{}) (CreateServiceBindingUsageInput, error)

type DeleteServiceBindingOutput

type DeleteServiceBindingOutput struct {
	Name        string `json:"name"`
	Environment string `json:"environment"`
}

type DeleteServiceBindingUsageOutput

type DeleteServiceBindingUsageOutput struct {
	Name        string `json:"name"`
	Environment string `json:"environment"`
}

type Deployment

type Deployment struct {
	Name              string
	Environment       string
	CreationTimestamp time.Time
	Status            DeploymentStatus
	Labels            JSON
	Containers        []Container
}

type DeploymentCondition

type DeploymentCondition struct {
	Status                  string    `json:"status"`
	Type                    string    `json:"type"`
	LastTransitionTimestamp time.Time `json:"lastTransitionTimestamp"`
	LastUpdateTimestamp     time.Time `json:"lastUpdateTimestamp"`
	Message                 string    `json:"message"`
	Reason                  string    `json:"reason"`
}

type DeploymentStatus

type DeploymentStatus struct {
	Replicas          int
	UpdatedReplicas   int
	ReadyReplicas     int
	AvailableReplicas int
	Conditions        []DeploymentCondition
}

type EnvPrefix

type EnvPrefix struct {
	Name string
}

type EnvPrefixInput

type EnvPrefixInput struct {
	Name string `json:"name"`
}

func UnmarshalEnvPrefixInput

func UnmarshalEnvPrefixInput(v interface{}) (EnvPrefixInput, error)

type Environment

type Environment struct {
	Name               string   `json:"name"`
	RemoteEnvironments []string `json:"remoteEnvironments"`
}

type EnvironmentMapping

type EnvironmentMapping struct {
	Environment       string `json:"environment"`
	RemoteEnvironment string `json:"remoteEnvironment"`
}

type EventActivation

type EventActivation struct {
	Name        string
	DisplayName string
	Source      EventActivationSource
}

type EventActivationEvent

type EventActivationEvent struct {
	EventType   string `json:"eventType"`
	Version     string `json:"version"`
	Description string `json:"description"`
}

type EventActivationSource

type EventActivationSource struct {
	Environment string `json:"environment"`
	Type        string `json:"type"`
	Namespace   string `json:"namespace"`
}

type Function

type Function struct {
	Name              string    `json:"name"`
	Trigger           string    `json:"trigger"`
	CreationTimestamp time.Time `json:"creationTimestamp"`
	Labels            JSON      `json:"labels"`
	Environment       string    `json:"environment"`
}

type IDPPreset

type IDPPreset struct {
	Name    string `json:"name"`
	Issuer  string `json:"issuer"`
	JwksUri string `json:"jwksUri"`
}

type InputTopic

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

func UnmarshalInputTopic

func UnmarshalInputTopic(v interface{}) (InputTopic, error)

type InstanceStatusType

type InstanceStatusType string
const (
	InstanceStatusTypeRunning        InstanceStatusType = "RUNNING"
	InstanceStatusTypeProvisioning   InstanceStatusType = "PROVISIONING"
	InstanceStatusTypeDeprovisioning InstanceStatusType = "DEPROVISIONING"
	InstanceStatusTypePending        InstanceStatusType = "PENDING"
	InstanceStatusTypeFailed         InstanceStatusType = "FAILED"
)

func (InstanceStatusType) IsValid

func (e InstanceStatusType) IsValid() bool

func (InstanceStatusType) MarshalGQL

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

func (InstanceStatusType) String

func (e InstanceStatusType) String() string

func (*InstanceStatusType) UnmarshalGQL

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

type JSON

type JSON map[string]interface{}

func (JSON) MarshalGQL

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

MarshalGQL implements the graphql.Marshaler interface

func (*JSON) UnmarshalGQL

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

type LimitRange

type LimitRange struct {
	Name   string           `json:"name"`
	Limits []LimitRangeItem `json:"limits"`
}

type LimitRangeItem

type LimitRangeItem struct {
	LimitType      LimitType    `json:"limitType"`
	Max            ResourceType `json:"max"`
	Default        ResourceType `json:"default"`
	DefaultRequest ResourceType `json:"defaultRequest"`
}

type LimitType

type LimitType string
const (
	LimitTypeContainer LimitType = "Container"
	LimitTypePod       LimitType = "Pod"
)

func (LimitType) IsValid

func (e LimitType) IsValid() bool

func (LimitType) MarshalGQL

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

func (LimitType) String

func (e LimitType) String() string

func (*LimitType) UnmarshalGQL

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

type LocalObjectReference

type LocalObjectReference struct {
	Kind BindingUsageReferenceType
	Name string
}

type LocalObjectReferenceInput

type LocalObjectReferenceInput struct {
	Kind BindingUsageReferenceType `json:"kind"`
	Name string                    `json:"name"`
}

func UnmarshalLocalObjectReferenceInput

func UnmarshalLocalObjectReferenceInput(v interface{}) (LocalObjectReferenceInput, error)

type RemoteEnvironment

type RemoteEnvironment struct {
	Name        string
	Description string
	Source      RemoteEnvironmentSource
	Services    []RemoteEnvironmentService
	// contains filtered or unexported fields
}

type RemoteEnvironmentEntry

type RemoteEnvironmentEntry struct {
	Type        string  `json:"type"`
	GatewayUrl  *string `json:"gatewayUrl"`
	AccessLabel *string `json:"accessLabel"`
}

type RemoteEnvironmentService

type RemoteEnvironmentService struct {
	ID                  string
	DisplayName         string
	LongDescription     string
	ProviderDisplayName string
	Tags                []string
	Entries             []RemoteEnvironmentEntry
}

type RemoteEnvironmentSource

type RemoteEnvironmentSource struct {
	Environment string `json:"environment"`
	Type        string `json:"type"`
	Namespace   string `json:"namespace"`
}

type RemoteEnvironmentStatus

type RemoteEnvironmentStatus string
const (
	RemoteEnvironmentStatusServing              RemoteEnvironmentStatus = "SERVING"
	RemoteEnvironmentStatusNotServing           RemoteEnvironmentStatus = "NOT_SERVING"
	RemoteEnvironmentStatusGatewayNotConfigured RemoteEnvironmentStatus = "GATEWAY_NOT_CONFIGURED"
)

func (RemoteEnvironmentStatus) IsValid

func (e RemoteEnvironmentStatus) IsValid() bool

func (RemoteEnvironmentStatus) MarshalGQL

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

func (RemoteEnvironmentStatus) String

func (e RemoteEnvironmentStatus) String() string

func (*RemoteEnvironmentStatus) UnmarshalGQL

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

type Resolvers

type Resolvers interface {
	Deployment_boundServiceInstanceNames(ctx context.Context, obj *Deployment) ([]string, error)

	EventActivation_events(ctx context.Context, obj *EventActivation) ([]EventActivationEvent, error)

	Mutation_createServiceInstance(ctx context.Context, params ServiceInstanceCreateInput) (*ServiceInstance, error)
	Mutation_deleteServiceInstance(ctx context.Context, name string, environment string) (*ServiceInstance, error)
	Mutation_createServiceBinding(ctx context.Context, serviceBindingName string, serviceInstanceName string, environment string) (*CreateServiceBindingOutput, error)
	Mutation_deleteServiceBinding(ctx context.Context, serviceBindingName string, environment string) (*DeleteServiceBindingOutput, error)
	Mutation_createServiceBindingUsage(ctx context.Context, createServiceBindingUsageInput *CreateServiceBindingUsageInput) (*ServiceBindingUsage, error)
	Mutation_deleteServiceBindingUsage(ctx context.Context, serviceBindingUsageName string, environment string) (*DeleteServiceBindingUsageOutput, error)
	Mutation_enableRemoteEnvironment(ctx context.Context, remoteEnvironment string, environment string) (*EnvironmentMapping, error)
	Mutation_disableRemoteEnvironment(ctx context.Context, remoteEnvironment string, environment string) (*EnvironmentMapping, error)
	Mutation_createIDPPreset(ctx context.Context, name string, issuer string, jwksUri string) (*IDPPreset, error)
	Mutation_deleteIDPPreset(ctx context.Context, name string) (*IDPPreset, error)
	Query_serviceInstance(ctx context.Context, name string, environment string) (*ServiceInstance, error)
	Query_serviceInstances(ctx context.Context, environment string, first *int, offset *int, status *InstanceStatusType) ([]ServiceInstance, error)
	Query_serviceClasses(ctx context.Context, first *int, offset *int) ([]ServiceClass, error)
	Query_serviceClass(ctx context.Context, name string) (*ServiceClass, error)
	Query_serviceBrokers(ctx context.Context, first *int, offset *int) ([]ServiceBroker, error)
	Query_serviceBroker(ctx context.Context, name string) (*ServiceBroker, error)
	Query_serviceBindingUsage(ctx context.Context, name string, environment string) (*ServiceBindingUsage, error)
	Query_serviceBinding(ctx context.Context, name string, environment string) (*ServiceBinding, error)
	Query_usageKinds(ctx context.Context, first *int, offset *int) ([]UsageKind, error)
	Query_usageKindResources(ctx context.Context, usageKind string, environment string) ([]UsageKindResource, error)
	Query_apis(ctx context.Context, environment string, serviceName *string, hostname *string) ([]API, error)
	Query_remoteEnvironment(ctx context.Context, name string) (*RemoteEnvironment, error)
	Query_remoteEnvironments(ctx context.Context, environment *string, first *int, offset *int) ([]RemoteEnvironment, error)
	Query_connectorService(ctx context.Context, remoteEnvironment string) (ConnectorService, error)
	Query_environments(ctx context.Context, remoteEnvironment *string) ([]Environment, error)
	Query_deployments(ctx context.Context, environment string, excludeFunctions *bool) ([]Deployment, error)
	Query_resourceQuotas(ctx context.Context, environment string) ([]ResourceQuota, error)
	Query_functions(ctx context.Context, environment string, first *int, offset *int) ([]Function, error)
	Query_content(ctx context.Context, contentType string, id string) (*JSON, error)
	Query_topics(ctx context.Context, input []InputTopic, internal *bool) ([]TopicEntry, error)
	Query_eventActivations(ctx context.Context, environment string) ([]EventActivation, error)
	Query_limitRanges(ctx context.Context, environment string) ([]LimitRange, error)
	Query_IDPPreset(ctx context.Context, name string) (*IDPPreset, error)
	Query_IDPPresets(ctx context.Context, first *int, offset *int) ([]IDPPreset, error)

	RemoteEnvironment_enabledInEnvironments(ctx context.Context, obj *RemoteEnvironment) ([]string, error)
	RemoteEnvironment_status(ctx context.Context, obj *RemoteEnvironment) (RemoteEnvironmentStatus, error)

	ServiceBinding_secret(ctx context.Context, obj *ServiceBinding) (*Secret, error)

	ServiceBindingUsage_serviceBinding(ctx context.Context, obj *ServiceBindingUsage) (*ServiceBinding, error)

	ServiceClass_plans(ctx context.Context, obj *ServiceClass) ([]ServicePlan, error)
	ServiceClass_activated(ctx context.Context, obj *ServiceClass) (bool, error)
	ServiceClass_apiSpec(ctx context.Context, obj *ServiceClass) (*JSON, error)
	ServiceClass_asyncApiSpec(ctx context.Context, obj *ServiceClass) (*JSON, error)
	ServiceClass_content(ctx context.Context, obj *ServiceClass) (*JSON, error)

	ServiceInstance_servicePlan(ctx context.Context, obj *ServiceInstance) (*ServicePlan, error)
	ServiceInstance_serviceClass(ctx context.Context, obj *ServiceInstance) (*ServiceClass, error)
	ServiceInstance_bindable(ctx context.Context, obj *ServiceInstance) (bool, error)
	ServiceInstance_serviceBindings(ctx context.Context, obj *ServiceInstance) ([]ServiceBinding, error)
	ServiceInstance_serviceBindingUsages(ctx context.Context, obj *ServiceInstance) ([]ServiceBindingUsage, error)

	Subscription_serviceInstanceEvent(ctx context.Context, environment string) (<-chan ServiceInstanceEvent, error)
}

type ResourceQuota

type ResourceQuota struct {
	Name     string
	Pods     *string
	Limits   ResourceValues
	Requests ResourceValues
}

type ResourceType

type ResourceType struct {
	Memory *string `json:"memory"`
	Cpu    *string `json:"cpu"`
}

type ResourceValues

type ResourceValues struct {
	Memory *string `json:"memory"`
	Cpu    *string `json:"cpu"`
}

type Secret

type Secret struct {
	Name        string `json:"name"`
	Environment string `json:"environment"`
	Data        JSON   `json:"data"`
}

type Section

type Section struct {
	TopicType string
	Titles    []Title
}

type Service

type Service struct {
	Name string `json:"name"`
	Port int    `json:"port"`
}

type ServiceBinding

type ServiceBinding struct {
	Name                string
	ServiceInstanceName string
	Environment         string
	SecretName          string
	Status              ServiceBindingStatus
}

type ServiceBindingRefInput

type ServiceBindingRefInput struct {
	Name string `json:"name"`
}

func UnmarshalServiceBindingRefInput

func UnmarshalServiceBindingRefInput(v interface{}) (ServiceBindingRefInput, error)

type ServiceBindingStatus

type ServiceBindingStatus struct {
	Type    ServiceBindingStatusType `json:"type"`
	Reason  string                   `json:"reason"`
	Message string                   `json:"message"`
}

type ServiceBindingStatusType

type ServiceBindingStatusType string
const (
	ServiceBindingStatusTypeReady   ServiceBindingStatusType = "READY"
	ServiceBindingStatusTypePending ServiceBindingStatusType = "PENDING"
	ServiceBindingStatusTypeFailed  ServiceBindingStatusType = "FAILED"
	ServiceBindingStatusTypeUnknown ServiceBindingStatusType = "UNKNOWN"
)

func (ServiceBindingStatusType) IsValid

func (e ServiceBindingStatusType) IsValid() bool

func (ServiceBindingStatusType) MarshalGQL

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

func (ServiceBindingStatusType) String

func (e ServiceBindingStatusType) String() string

func (*ServiceBindingStatusType) UnmarshalGQL

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

type ServiceBindingUsage

type ServiceBindingUsage struct {
	Name               string
	Environment        string
	ServiceBindingName string
	UsedBy             LocalObjectReference
	Status             ServiceBindingUsageStatus
	Parameters         *ServiceBindingUsageParameters
}

type ServiceBindingUsageParameters

type ServiceBindingUsageParameters struct {
	EnvPrefix *EnvPrefix
}

type ServiceBindingUsageParametersInput

type ServiceBindingUsageParametersInput struct {
	EnvPrefix *EnvPrefixInput `json:"envPrefix"`
}

func UnmarshalServiceBindingUsageParametersInput

func UnmarshalServiceBindingUsageParametersInput(v interface{}) (ServiceBindingUsageParametersInput, error)

type ServiceBindingUsageStatus

type ServiceBindingUsageStatus struct {
	Type    ServiceBindingUsageStatusType `json:"type"`
	Reason  string                        `json:"reason"`
	Message string                        `json:"message"`
}

type ServiceBindingUsageStatusType

type ServiceBindingUsageStatusType string
const (
	ServiceBindingUsageStatusTypeReady   ServiceBindingUsageStatusType = "READY"
	ServiceBindingUsageStatusTypePending ServiceBindingUsageStatusType = "PENDING"
	ServiceBindingUsageStatusTypeFailed  ServiceBindingUsageStatusType = "FAILED"
	ServiceBindingUsageStatusTypeUnknown ServiceBindingUsageStatusType = "UNKNOWN"
)

func (ServiceBindingUsageStatusType) IsValid

func (e ServiceBindingUsageStatusType) IsValid() bool

func (ServiceBindingUsageStatusType) MarshalGQL

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

func (ServiceBindingUsageStatusType) String

func (*ServiceBindingUsageStatusType) UnmarshalGQL

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

type ServiceBroker

type ServiceBroker struct {
	Name              string
	CreationTimestamp time.Time
	Url               string
	Labels            JSON
	Status            ServiceBrokerStatus
}

type ServiceBrokerStatus

type ServiceBrokerStatus struct {
	Ready   bool   `json:"ready"`
	Reason  string `json:"reason"`
	Message string `json:"message"`
}

type ServiceClass

type ServiceClass struct {
	Name                string
	ExternalName        string
	DisplayName         *string
	CreationTimestamp   time.Time
	Description         string
	ImageUrl            *string
	DocumentationUrl    *string
	ProviderDisplayName *string
	Tags                []string
	// contains filtered or unexported fields
}

type ServiceInstance

type ServiceInstance struct {
	Name                    string
	Environment             string
	ServiceClassName        *string
	ServiceClassDisplayName string
	ServicePlanName         *string
	ServicePlanDisplayName  string
	CreationTimestamp       time.Time
	Labels                  []string
	Status                  ServiceInstanceStatus
}

type ServiceInstanceCreateInput

type ServiceInstanceCreateInput struct {
	Name                     string   `json:"name"`
	Environment              string   `json:"environment"`
	ExternalServiceClassName string   `json:"externalServiceClassName"`
	ExternalPlanName         string   `json:"externalPlanName"`
	Labels                   []string `json:"labels"`
	ParameterSchema          *JSON    `json:"parameterSchema"`
}

func UnmarshalServiceInstanceCreateInput

func UnmarshalServiceInstanceCreateInput(v interface{}) (ServiceInstanceCreateInput, error)

type ServiceInstanceEvent

type ServiceInstanceEvent struct {
	Type     ServiceInstanceEventType
	Instance ServiceInstance
}

type ServiceInstanceEventType

type ServiceInstanceEventType string
const (
	ServiceInstanceEventTypeAdd    ServiceInstanceEventType = "ADD"
	ServiceInstanceEventTypeUpdate ServiceInstanceEventType = "UPDATE"
	ServiceInstanceEventTypeDelete ServiceInstanceEventType = "DELETE"
)

func (ServiceInstanceEventType) IsValid

func (e ServiceInstanceEventType) IsValid() bool

func (ServiceInstanceEventType) MarshalGQL

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

func (ServiceInstanceEventType) String

func (e ServiceInstanceEventType) String() string

func (*ServiceInstanceEventType) UnmarshalGQL

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

type ServiceInstanceStatus

type ServiceInstanceStatus struct {
	Type    InstanceStatusType `json:"type"`
	Reason  string             `json:"reason"`
	Message string             `json:"message"`
}

type ServicePlan

type ServicePlan struct {
	Name                          string  `json:"name"`
	DisplayName                   *string `json:"displayName"`
	ExternalName                  string  `json:"externalName"`
	Description                   string  `json:"description"`
	RelatedServiceClassName       string  `json:"relatedServiceClassName"`
	InstanceCreateParameterSchema *JSON   `json:"instanceCreateParameterSchema"`
}

type Title

type Title struct {
	Name   string
	Anchor string
	Titles []Title
}

type TopicEntry

type TopicEntry struct {
	ContentType string
	ID          string
	Sections    []Section
}

type UsageKind

type UsageKind struct {
	Name        string `json:"name"`
	Group       string `json:"group"`
	Kind        string `json:"kind"`
	Version     string `json:"version"`
	DisplayName string `json:"displayName"`
}

type UsageKindResource

type UsageKindResource struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

Jump to

Keyboard shortcuts

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