Documentation

Overview

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiSpecGetter

type ApiSpecGetter interface {
	Find(kind, id string) (*storage.ApiSpec, error)
}

go:generate mockery -name=ApiSpecGetter -output=automock -outpkg=automock -case=underscore

type AsyncApiSpecGetter

type AsyncApiSpecGetter interface {
	Find(kind, id string) (*storage.AsyncApiSpec, error)
}

go:generate mockery -name=AsyncApiSpecGetter -output=automock -outpkg=automock -case=underscore

type Container

type Container struct {
	Resolver                  *Resolver
	ServiceBindingUsageLister ServiceBindingUsageLister
	ServiceBindingGetter      ServiceBindingGetter
}

func New

func New(restConfig *rest.Config, informerResyncPeriod time.Duration, asyncApiSpecGetter AsyncApiSpecGetter, apiSpecGetter ApiSpecGetter, contentGetter ContentGetter) (*Container, error)

type ContentGetter

type ContentGetter interface {
	Find(kind, id string) (*storage.Content, error)
}

go:generate mockery -name=ContentGetter -output=automock -outpkg=automock -case=underscore

type Resolver

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

func (Resolver) CreateServiceBindingMutation

func (r Resolver) CreateServiceBindingMutation(ctx context.Context, serviceBindingName, serviceInstanceName, env string) (*gqlschema.CreateServiceBindingOutput, error)

func (Resolver) CreateServiceBindingUsageMutation

func (r Resolver) CreateServiceBindingUsageMutation(ctx context.Context, input *gqlschema.CreateServiceBindingUsageInput) (*gqlschema.ServiceBindingUsage, error)

func (Resolver) CreateServiceInstanceMutation

func (r Resolver) CreateServiceInstanceMutation(ctx context.Context, params gqlschema.ServiceInstanceCreateInput) (*gqlschema.ServiceInstance, error)

func (Resolver) DeleteServiceBindingMutation

func (r Resolver) DeleteServiceBindingMutation(ctx context.Context, serviceBindingName, env string) (*gqlschema.DeleteServiceBindingOutput, error)

func (Resolver) DeleteServiceBindingUsageMutation

func (r Resolver) DeleteServiceBindingUsageMutation(ctx context.Context, serviceBindingUsageName, namespace string) (*gqlschema.DeleteServiceBindingUsageOutput, error)

func (Resolver) DeleteServiceInstanceMutation

func (r Resolver) DeleteServiceInstanceMutation(ctx context.Context, name, environment string) (*gqlschema.ServiceInstance, error)

func (Resolver) ListServiceUsageKindResources

func (rsv Resolver) ListServiceUsageKindResources(ctx context.Context, usageKind string, environment string) ([]gqlschema.UsageKindResource, error)

func (Resolver) ListUsageKinds

func (rsv Resolver) ListUsageKinds(ctx context.Context, first *int, offset *int) ([]gqlschema.UsageKind, error)

func (Resolver) ServiceBindingQuery

func (r Resolver) ServiceBindingQuery(ctx context.Context, name, env string) (*gqlschema.ServiceBinding, error)

func (Resolver) ServiceBindingUsageQuery

func (r Resolver) ServiceBindingUsageQuery(ctx context.Context, name, environment string) (*gqlschema.ServiceBindingUsage, error)

func (Resolver) ServiceBindingUsagesOfInstanceQuery

func (r Resolver) ServiceBindingUsagesOfInstanceQuery(ctx context.Context, instanceName, env string) ([]gqlschema.ServiceBindingUsage, error)

func (Resolver) ServiceBindingsToInstanceQuery

func (r Resolver) ServiceBindingsToInstanceQuery(ctx context.Context, instanceName, environment string) ([]gqlschema.ServiceBinding, error)

func (Resolver) ServiceBrokerQuery

func (r Resolver) ServiceBrokerQuery(ctx context.Context, name string) (*gqlschema.ServiceBroker, error)

func (Resolver) ServiceBrokersQuery

func (r Resolver) ServiceBrokersQuery(ctx context.Context, first *int, offset *int) ([]gqlschema.ServiceBroker, error)

func (Resolver) ServiceClassActivatedField

func (r Resolver) ServiceClassActivatedField(ctx context.Context, obj *gqlschema.ServiceClass) (bool, error)

func (Resolver) ServiceClassApiSpecField

func (r Resolver) ServiceClassApiSpecField(ctx context.Context, obj *gqlschema.ServiceClass) (*gqlschema.JSON, error)

func (Resolver) ServiceClassAsyncApiSpecField

func (r Resolver) ServiceClassAsyncApiSpecField(ctx context.Context, obj *gqlschema.ServiceClass) (*gqlschema.JSON, error)

func (Resolver) ServiceClassContentField

func (r Resolver) ServiceClassContentField(ctx context.Context, obj *gqlschema.ServiceClass) (*gqlschema.JSON, error)

func (Resolver) ServiceClassPlansField

func (r Resolver) ServiceClassPlansField(ctx context.Context, obj *gqlschema.ServiceClass) ([]gqlschema.ServicePlan, error)

func (Resolver) ServiceClassQuery

func (r Resolver) ServiceClassQuery(ctx context.Context, name string) (*gqlschema.ServiceClass, error)

func (Resolver) ServiceClassesQuery

func (r Resolver) ServiceClassesQuery(ctx context.Context, first *int, offset *int) ([]gqlschema.ServiceClass, error)

func (Resolver) ServiceInstanceBindableField

func (r Resolver) ServiceInstanceBindableField(ctx context.Context, obj *gqlschema.ServiceInstance) (bool, error)

func (Resolver) ServiceInstanceEventSubscription

func (r Resolver) ServiceInstanceEventSubscription(ctx context.Context, environment string) (<-chan gqlschema.ServiceInstanceEvent, error)

func (Resolver) ServiceInstanceQuery

func (r Resolver) ServiceInstanceQuery(ctx context.Context, name string, environment string) (*gqlschema.ServiceInstance, error)

func (Resolver) ServiceInstanceServiceClassField

func (r Resolver) ServiceInstanceServiceClassField(ctx context.Context, obj *gqlschema.ServiceInstance) (*gqlschema.ServiceClass, error)

func (Resolver) ServiceInstanceServicePlanField

func (r Resolver) ServiceInstanceServicePlanField(ctx context.Context, obj *gqlschema.ServiceInstance) (*gqlschema.ServicePlan, error)

func (Resolver) ServiceInstancesQuery

func (r Resolver) ServiceInstancesQuery(ctx context.Context, environment string, first *int, offset *int, status *gqlschema.InstanceStatusType) ([]gqlschema.ServiceInstance, error)

func (*Resolver) WaitForCacheSync

func (r *Resolver) WaitForCacheSync(stopCh <-chan struct{})

type ServiceBindingGetter

type ServiceBindingGetter interface {
	Find(env string, name string) (*bindingApi.ServiceBinding, error)
}

type ServiceBindingUsageLister

type ServiceBindingUsageLister interface {
	ListForDeployment(environment, kind, deploymentName string) ([]*bindingUsageApi.ServiceBindingUsage, error)
}

Directories

Path Synopsis
automock Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
status