k8s

package
v0.0.0-...-6f0f11f Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 43 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 DiscoveryInterface

type DiscoveryInterface interface {
	discovery.DiscoveryInterface
}

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, systemNamespaces []string) (*Resolver, error)

func (*Resolver) ApplicationsCountField

func (r *Resolver) ApplicationsCountField(ctx context.Context, obj *gqlschema.NamespaceListItem) (*int, error)

func (Resolver) ApplicationsField

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

func (Resolver) ConfigMapEventSubscription

func (r Resolver) ConfigMapEventSubscription(ctx context.Context, namespace string) (<-chan *gqlschema.ConfigMapEvent, error)

func (Resolver) ConfigMapQuery

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

func (Resolver) ConfigMapsQuery

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

func (Resolver) CreateNamespace

func (r Resolver) CreateNamespace(ctx context.Context, name string, labels gqlschema.Labels) (*gqlschema.NamespaceMutationOutput, error)

func (Resolver) CreateResourceMutation

func (r Resolver) CreateResourceMutation(ctx context.Context, namespace string, resource gqlschema.JSON) (gqlschema.JSON, error)

func (Resolver) DeleteConfigMapMutation

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

func (Resolver) DeleteNamespace

func (r Resolver) DeleteNamespace(ctx context.Context, name string) (*gqlschema.Namespace, 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) DeleteSecretMutation

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

func (Resolver) DeleteServiceMutation

func (r Resolver) DeleteServiceMutation(context context.Context, name string, namespace string) (*gqlschema.Service, error)

func (Resolver) DeploymentBoundServiceInstanceNamesField

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

func (*Resolver) DeploymentEventSubscription

func (r *Resolver) DeploymentEventSubscription(ctx context.Context, namespace string) (<-chan *gqlschema.DeploymentEvent, error)

func (Resolver) DeploymentsQuery

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

func (*Resolver) HealthyPodsCountField

func (r *Resolver) HealthyPodsCountField(ctx context.Context, obj *gqlschema.NamespaceListItem) (int, error)

func (Resolver) NamespaceEventSubscription

func (r Resolver) NamespaceEventSubscription(ctx context.Context, withSystemNamespaces *bool) (<-chan *gqlschema.NamespaceEvent, error)

func (Resolver) NamespaceQuery

func (r Resolver) NamespaceQuery(ctx context.Context, name string) (*gqlschema.Namespace, error)

func (Resolver) NamespacesQuery

func (r Resolver) NamespacesQuery(ctx context.Context, withSystemNamespaces *bool, withInactiveStatus *bool) ([]*gqlschema.NamespaceListItem, error)

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) PodsCountField

func (r *Resolver) PodsCountField(ctx context.Context, obj *gqlschema.NamespaceListItem) (int, 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) SecretEventSubscription

func (r Resolver) SecretEventSubscription(ctx context.Context, namespace string) (<-chan *gqlschema.SecretEvent, error)

func (Resolver) SecretQuery

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

func (Resolver) SecretsQuery

func (r Resolver) SecretsQuery(ctx context.Context, ns string, first *int, offset *int) ([]*gqlschema.Secret, error)

func (Resolver) SelfSubjectRulesQuery

func (r Resolver) SelfSubjectRulesQuery(ctx context.Context, namespace *string) ([]*gqlschema.ResourceRule, error)

func (Resolver) ServiceEventSubscription

func (r Resolver) ServiceEventSubscription(ctx context.Context, namespace string) (<-chan *gqlschema.ServiceEvent, error)

func (Resolver) ServiceQuery

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

func (Resolver) ServicesQuery

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

func (Resolver) UpdateConfigMapMutation

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

func (Resolver) UpdateNamespace

func (r Resolver) UpdateNamespace(ctx context.Context, name string, labels gqlschema.Labels) (*gqlschema.NamespaceMutationOutput, 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) UpdateSecretMutation

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

func (Resolver) UpdateServiceMutation

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

func (Resolver) VersionInfoQuery

func (r Resolver) VersionInfoQuery(ctx context.Context) (*gqlschema.VersionInfo, 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