k8s

package
v0.0.0-...-1ac4f16 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationLister

type ApplicationLister interface {
	ListInNamespace(namespace string) ([]*v1alpha1.Application, error)
	ListNamespacesFor(reName string) ([]string, error)
}

type Resolver

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

func New

func New(restConfig *rest.Config, informerResyncPeriod time.Duration, applicationRetriever shared.ApplicationRetriever, scRetriever shared.ServiceCatalogRetriever, scaRetriever shared.ServiceCatalogAddonsRetriever) (*Resolver, error)

func (Resolver) ApplicationsField

func (r Resolver) ApplicationsField(ctx context.Context, obj *gqlschema.Namespace) ([]string, error)

func (Resolver) DeletePodMutation

func (r Resolver) DeletePodMutation(ctx context.Context, name string, namespace string) (*gqlschema.Pod, error)

func (Resolver) DeleteReplicaSetMutation

func (r Resolver) DeleteReplicaSetMutation(ctx context.Context, name string, namespace string) (*gqlschema.ReplicaSet, error)

func (Resolver) DeploymentBoundServiceInstanceNamesField

func (r Resolver) DeploymentBoundServiceInstanceNamesField(ctx context.Context, deployment *gqlschema.Deployment) ([]string, error)

func (Resolver) DeploymentsQuery

func (r Resolver) DeploymentsQuery(ctx context.Context, namespace string, excludeFunctions *bool) ([]gqlschema.Deployment, error)

func (Resolver) LimitRangesQuery

func (lr Resolver) LimitRangesQuery(ctx context.Context, namespace string) ([]gqlschema.LimitRange, error)

func (Resolver) NamespacesQuery

func (r Resolver) NamespacesQuery(ctx context.Context, applicationName *string) ([]gqlschema.Namespace, error)

TODO: Split this query into two

func (Resolver) PodEventSubscription

func (r Resolver) PodEventSubscription(ctx context.Context, namespace string) (<-chan gqlschema.PodEvent, error)

func (Resolver) PodQuery

func (r Resolver) PodQuery(ctx context.Context, name, namespace string) (*gqlschema.Pod, error)

func (Resolver) PodsQuery

func (r Resolver) PodsQuery(ctx context.Context, namespace string, first *int, offset *int) ([]gqlschema.Pod, error)

func (Resolver) ReplicaSetQuery

func (r Resolver) ReplicaSetQuery(ctx context.Context, name, namespace string) (*gqlschema.ReplicaSet, error)

func (Resolver) ReplicaSetsQuery

func (r Resolver) ReplicaSetsQuery(ctx context.Context, namespace string, first *int, offset *int) ([]gqlschema.ReplicaSet, error)

func (Resolver) ResourceQuotasQuery

func (r Resolver) ResourceQuotasQuery(ctx context.Context, namespace string) ([]gqlschema.ResourceQuota, error)

func (Resolver) ResourceQuotasStatus

func (r Resolver) ResourceQuotasStatus(ctx context.Context, namespace string) (gqlschema.ResourceQuotasStatus, error)

func (Resolver) SecretQuery

func (r Resolver) SecretQuery(ctx context.Context, name, ns string) (*gqlschema.Secret, error)

func (Resolver) UpdatePodMutation

func (r Resolver) UpdatePodMutation(ctx context.Context, name string, namespace string, update gqlschema.JSON) (*gqlschema.Pod, error)

func (Resolver) UpdateReplicaSetMutation

func (r Resolver) UpdateReplicaSetMutation(ctx context.Context, name string, namespace string, update gqlschema.JSON) (*gqlschema.ReplicaSet, error)

func (*Resolver) WaitForCacheSync

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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