edgecluster

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Package edgecluster implements different edge cluster GraphQL query resovlers required by the GraphQL transport layer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEdgeClusterNodeResolver added in v0.6.1

func NewEdgeClusterNodeResolver(
	ctx context.Context,
	logger *zap.Logger,
	resolverCreator types.ResolverCreatorContract,
	node *edgeclusterGrpcContract.EdgeClusterNode) (edgecluster.NodeResolverContract, error)

NewEdgeClusterNodeResolver creates new instance of the edgeClusterNodeResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service node: Mandatory. Contains information about the edge cluster node. Returns the new instance or error if something goes wrong

func NewEdgeClusterPodResolver added in v0.6.1

func NewEdgeClusterPodResolver(
	ctx context.Context,
	logger *zap.Logger,
	resolverCreator types.ResolverCreatorContract,
	pod *edgeclusterGrpcContract.EdgeClusterPod) (edgecluster.PodResolverContract, error)

NewEdgeClusterPodResolver creates new instance of the edgeClusterPodResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service pod: Mandatory. Contains information about the edge cluster pod. Returns the new instance or error if something goes wrong

func NewEdgeClusterProjectResolver added in v0.5.0

func NewEdgeClusterProjectResolver(
	ctx context.Context,
	resolverCreator types.ResolverCreatorContract,
	logger *zap.Logger,
	projectID string) (edgecluster.EdgeClusterProjectResolverContract, error)

NewEdgeClusterProjectResolver creates new instance of the edgeClusterProjectResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context resolverCreator: Mandatory. Reference to the resolver creator service that can create new instances of resolvers projectID: Mandatory. the project unique identifier Returns the new instance or error if something goes wrong

func NewEdgeClusterResolver

func NewEdgeClusterResolver(
	ctx context.Context,
	resolverCreator types.ResolverCreatorContract,
	logger *zap.Logger,
	edgeClusterClientService edgecluster.EdgeClusterClientContract,
	edgeClusterID string,
	edgeClusterDetail *edgecluster.EdgeClusterDetail) (edgecluster.EdgeClusterResolverContract, error)

NewEdgeClusterResolver creates new instance of the edgeClusterResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context resolverCreator: Mandatory. Reference to the resolver creator service that can create new instances of resolvers logger: Mandatory. Reference to the logger service edgeClusterID: Mandatory. the edge cluster unique identifier edgeClusterDetail: Optional. The edge cluster details, if provided, the value be used instead of contacting the edge cluster service Returns the new instance or error if something goes wrong

func NewEdgeClusterServiceResolver added in v0.6.1

func NewEdgeClusterServiceResolver(
	ctx context.Context,
	logger *zap.Logger,
	resolverCreator types.ResolverCreatorContract,
	service *edgeclusterGrpcContract.EdgeClusterService) (edgecluster.ServiceResolverContract, error)

NewEdgeClusterServiceResolver creates new instance of the edgeClusterServiceResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service service: Mandatory. Contains information about the edge cluster service. Returns the new instance or error if something goes wrong

func NewEdgeClusterTypeConnectionResolver

func NewEdgeClusterTypeConnectionResolver(
	ctx context.Context,
	resolverCreator types.ResolverCreatorContract,
	edgeClusters []*edgeclusterGrpcContract.EdgeClusterWithCursor,
	hasPreviousPage bool,
	hasNextPage bool,
	totalCount int32) (edgecluster.EdgeClusterTypeConnectionResolverContract, error)

NewEdgeClusterTypeConnectionResolver creates new instance of the edgeClusterTypeConnectionResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context resolverCreator: Mandatory. Reference to the resolver creator service that can create new instances of resolvers edgeClusters: Mandatory. Reference the list of edge clusters hasPreviousPage: Mandatory. Indicates whether more edges exist prior to the set defined by the clients arguments hasNextPage: Mandatory. Indicates whether more edges exist following the set defined by the clients arguments totalCount: Mandatory. The total count of matched edge clusters Returns the new instance or error if something goes wrong

func NewEdgeClusterTypeEdgeResolver

func NewEdgeClusterTypeEdgeResolver(
	ctx context.Context,
	resolverCreator types.ResolverCreatorContract,
	edgeClusterID string,
	edgeClusterDetail *edgecluster.EdgeClusterDetail,
	cursor string) (edgecluster.EdgeClusterTypeEdgeResolverContract, error)

NewEdgeClusterTypeEdgeResolver creates new instance of the edgeClusterTypeEdgeResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context resolverCreator: Mandatory. Reference to the resolver creator service that can create new instances of resolvers edgeClusterID: Mandatory. the edge cluster unique identifier edgeClusterDetail: Optional. The edge cluster details, if provided, the value be used instead of contacting the edge cluster service cursor: Mandatory. the cursor Returns the new instance or error if something goes wrong

func NewLoadBalancerIngressResolver added in v0.6.1

func NewLoadBalancerIngressResolver(
	ctx context.Context,
	logger *zap.Logger,
	resolverCreator types.ResolverCreatorContract,
	loadBalancerIngress *edgeclusterGrpcContract.LoadBalancerIngress) (edgecluster.LoadBalancerIngressResolverContract, error)

NewLoadBalancerIngressResolver creates new instance of the loadBalancerIngressResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service loadBalancerIngress: Mandatory. The load balancer ingress details Returns the new instance or error if something goes wrong

func NewLoadBalancerStatusResolver added in v0.6.1

func NewLoadBalancerStatusResolver(
	ctx context.Context,
	logger *zap.Logger,
	resolverCreator types.ResolverCreatorContract,
	loadBalancerStatus *edgeclusterGrpcContract.LoadBalancerStatus) (edgecluster.LoadBalancerStatusResolverContract, error)

NewLoadBalancerStatusResolver creates new instance of the loadBalancerStatusResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service loadBalancerStatus: Mandatory. The load balancer status details Returns the new instance or error if something goes wrong

func NewNodeAddressResolver added in v0.6.1

NewNodeAddressResolver creates new instance of the nodeAddressResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service nodeAddresss: Mandatory. Contains information for the edge cluster node's address. Returns the new instance or error if something goes wrong

func NewNodeConditionResolver added in v0.6.1

func NewNodeConditionResolver(
	ctx context.Context,
	logger *zap.Logger,
	condition *edgeclusterGrpcContract.NodeCondition) (edgecluster.NodeConditionResolverContract, error)

NewNodeConditionResolver creates new instance of the nodeConditionResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service condition: Mandatory. Contains condition information for a node. Returns the new instance or error if something goes wrong

func NewNodeStatusResolver added in v0.6.1

NewNodeStatusResolver creates new instance of the nodeStatusResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service node: Mandatory. Contains information about the edge cluster node status. Returns the new instance or error if something goes wrong

func NewNodeSystemInfoResolver added in v0.6.1

NewNodeSystemInfoResolver creates new instance of the nodeSystemInfoResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service nodeInfo: Mandatory. Contains a set of ids/uuids to uniquely identify the node. Returns the new instance or error if something goes wrong

func NewObjectMetaResolver added in v0.6.1

func NewObjectMetaResolver(
	ctx context.Context,
	logger *zap.Logger,
	metadata *edgeclusterGrpcContract.ObjectMeta) (edgecluster.ObjectMetaResolverContract, error)

NewObjectMetaResolver creates new instance of the objectMetaResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service metadata: Mandatory. Contains the object metadata. Returns the new instance or error if something goes wrong

func NewPodConditionResolver added in v0.6.1

func NewPodConditionResolver(
	ctx context.Context,
	logger *zap.Logger,
	podCondition *edgeclusterGrpcContract.PodCondition) (edgecluster.PodConditionResolverContract, error)

NewPodConditionResolver creates new instance of the podConditionResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service podCondition: Mandatory. Contains condition information for a pod. Returns the new instance or error if something goes wrong

func NewPodSpecResolver added in v0.6.1

NewPodSpecResolver creates new instance of the edgeClusterPodSpecResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service spec: Mandatory. Contains information about the edge cluster pod spec. Returns the new instance or error if something goes wrong

func NewPodStatusResolver added in v0.6.1

NewPodStatusResolver creates new instance of the edgeClusterPodStatusResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service status: Mandatory. Contains information about the edge cluster pod status. Returns the new instance or error if something goes wrong

func NewPortStatusResolver added in v0.6.1

func NewPortStatusResolver(
	ctx context.Context,
	logger *zap.Logger,
	PortStatus *edgeclusterGrpcContract.PortStatus) (edgecluster.PortStatusResolverContract, error)

NewPortStatusResolver creates new instance of the portStatusResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service portStatus: Mandatory. Contains the port status. Returns the new instance or error if something goes wrong

func NewProvisionDetailsResolver added in v0.6.1

func NewProvisionDetailsResolver(
	ctx context.Context,
	logger *zap.Logger,
	resolverCreator types.ResolverCreatorContract,
	provisionDetails *edgeclusterGrpcContract.ProvisionDetail) (edgecluster.ProvisionDetailsResolverContract, error)

NewProvisionDetailsResolver creates new instance of the provisionDetailsResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service provisionDetails: Optional. The edge cluster provisioning details Returns the new instance or error if something goes wrong

func NewServiceConditionResolver added in v0.6.1

NewServiceConditionResolver creates new instance of the serviceConditionResolverContract, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service condition: Mandatory. Contains condition information for a service. Returns the new instance or error if something goes wrong

func NewServicePortResolver added in v0.6.1

func NewServicePortResolver(
	ctx context.Context,
	logger *zap.Logger,
	servicePort *edgeclusterGrpcContract.ServicePort) (edgecluster.ServicePortResolverContract, error)

NewServicePortResolver creates new instance of the servicePortResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service servicePort: Mandatory. Contains condition information for a pod. Returns the new instance or error if something goes wrong

func NewServiceSpecResolver added in v0.6.1

func NewServiceSpecResolver(
	ctx context.Context,
	logger *zap.Logger,
	resolverCreator types.ResolverCreatorContract,
	serviceSpec *edgeclusterGrpcContract.ServiceSpec) (edgecluster.ServiceSpecResolverContract, error)

NewServiceSpecResolver creates new instance of the serviceSpecResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service serviceSpec: Optional. The service spec Returns the new instance or error if something goes wrong

func NewServiceStatusResolver added in v0.6.1

func NewServiceStatusResolver(
	ctx context.Context,
	logger *zap.Logger,
	resolverCreator types.ResolverCreatorContract,
	serviceStatus *edgeclusterGrpcContract.ServiceStatus) (edgecluster.ServiceStatusResolverContract, error)

NewServiceStatusResolver creates new instance of the serviceStatusResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context logger: Mandatory. Reference to the logger service serviceStatus: Optional. The service status Returns the new instance or error if something goes wrong

Types

This section is empty.

Jump to

Keyboard shortcuts

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