Documentation
¶
Index ¶
- func MakeExecutableSchema(resolvers Resolvers) graphql.ExecutableSchema
- func MarshalTimestamp(t time.Time) graphql.Marshaler
- func UnmarshalTimestamp(v interface{}) (time.Time, error)
- type API
- type AuthenticationPolicy
- type AuthenticationPolicyType
- type BindingUsageReferenceType
- type ConnectorService
- type Container
- type CreateServiceBindingOutput
- type CreateServiceBindingUsageInput
- type DeleteServiceBindingOutput
- type DeleteServiceBindingUsageOutput
- type Deployment
- type DeploymentCondition
- type DeploymentStatus
- type EnvPrefix
- type EnvPrefixInput
- type Environment
- type EnvironmentMapping
- type EventActivation
- type EventActivationEvent
- type EventActivationSource
- type Function
- type IDPPreset
- type InputTopic
- type InstanceStatusType
- type JSON
- type LimitRange
- type LimitRangeItem
- type LimitType
- type LocalObjectReference
- type LocalObjectReferenceInput
- type RemoteEnvironment
- type RemoteEnvironmentEntry
- type RemoteEnvironmentService
- type RemoteEnvironmentSource
- type RemoteEnvironmentStatus
- type Resolvers
- type ResourceQuota
- type ResourceType
- type ResourceValues
- type Secret
- type Section
- type Service
- type ServiceBinding
- type ServiceBindingRefInput
- type ServiceBindingStatus
- type ServiceBindingStatusType
- type ServiceBindingUsage
- type ServiceBindingUsageParameters
- type ServiceBindingUsageParametersInput
- type ServiceBindingUsageStatus
- type ServiceBindingUsageStatusType
- type ServiceBroker
- type ServiceBrokerStatus
- type ServiceClass
- type ServiceInstance
- type ServiceInstanceCreateInput
- type ServiceInstanceEvent
- type ServiceInstanceEventType
- type ServiceInstanceStatus
- type ServicePlan
- type Title
- type TopicEntry
- type UsageKind
- type UsageKindResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeExecutableSchema ¶
func MakeExecutableSchema(resolvers Resolvers) graphql.ExecutableSchema
func UnmarshalTimestamp ¶
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 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 Deployment ¶
type DeploymentCondition ¶
type DeploymentStatus ¶
type DeploymentStatus struct {
Replicas int
UpdatedReplicas int
ReadyReplicas int
AvailableReplicas int
Conditions []DeploymentCondition
}
type EnvPrefixInput ¶
type EnvPrefixInput struct {
Name string `json:"name"`
}
func UnmarshalEnvPrefixInput ¶
func UnmarshalEnvPrefixInput(v interface{}) (EnvPrefixInput, error)
type Environment ¶
type EnvironmentMapping ¶
type EventActivation ¶
type EventActivation struct {
Name string
DisplayName string
Source EventActivationSource
}
type EventActivationEvent ¶
type EventActivationSource ¶
type InputTopic ¶
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 ¶
MarshalGQL implements the graphql.Marshaler interface
func (*JSON) UnmarshalGQL ¶
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
func (LimitType) MarshalGQL ¶
func (*LimitType) UnmarshalGQL ¶
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 RemoteEnvironmentSource ¶
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 ResourceValues ¶
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 (e ServiceBindingUsageStatusType) String() string
func (*ServiceBindingUsageStatusType) UnmarshalGQL ¶
func (e *ServiceBindingUsageStatusType) UnmarshalGQL(v interface{}) error
type ServiceBroker ¶
type ServiceBrokerStatus ¶
type ServiceClass ¶
type ServiceInstance ¶
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 TopicEntry ¶
type UsageKindResource ¶
Source Files
¶
- Section.go
- Title.go
- TopicEntry.go
- api.go
- deployment.go
- deploymentstatus.go
- eventactivation.go
- json.go
- limitrange.go
- models_gen.go
- remoteenvironment.go
- remoteenvironmentservice.go
- resourcequota.go
- schema_gen.go
- servicebinding.go
- servicebindingusage.go
- servicebroker.go
- serviceclass.go
- serviceinstance.go
- serviceinstanceevent.go
- timestamp.go
Click to show internal directories.
Click to hide internal directories.