Back to godoc.org

Package tenant

v0.1.1
Latest Go to latest

The highest tagged major version is .

Published: Mar 29, 2020 | License: Apache-2.0 | Module: github.com/decentralized-cloud/api-gateway

Overview

Package tenant implements tenant mutation required by the GraphQL transport layer

Package tenant implements tenant mutation required by the GraphQL transport layer

Package tenant implements tenant mutation required by the GraphQL transport layer

Index

func NewCreateTenant

func NewCreateTenant(
	ctx context.Context,
	resolverCreator types.ResolverCreatorContract,
	logger *zap.Logger,
	tenantClientService tenant.TenantClientContract) (tenant.CreateTenantContract, error)

NewCreateTenant creates new instance of the createTenant, 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 tenantClientService: Mandatory. the tenant client service that creates gRPC connection and client to the tenant Returns the new instance or error if something goes wrong

func NewCreateTenantPayloadResolver

func NewCreateTenantPayloadResolver(
	ctx context.Context,
	resolverCreator types.ResolverCreatorContract,
	clientMutationId *string,
	tenantID string,
	tenantDetail *tenant.TenantDetail,
	cursor string) (tenant.CreateTenantPayloadResolverContract, error)

NewCreateTenantPayloadResolver updates new instance of the createTenantPayloadResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context resolverCreator: Mandatory. Reference to the resolver creator service that can update new instances of resolvers clientMutationId: Optional. Reference to the client mutation ID tenantID: Mandatory. The tenant unique identifier tenantDetail: Mandatory. The tenant details cursor: Mandatory. The edge cluster cursor Returns the new instance or error if something goes wrong

func NewDeleteTenant

func NewDeleteTenant(
	ctx context.Context,
	resolverCreator types.ResolverCreatorContract,
	logger *zap.Logger,
	tenantClientService tenant.TenantClientContract) (tenant.DeleteTenantContract, error)

NewDeleteTenant deletes new instance of the deleteTenant, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context resolverCreator: Mandatory. Reference to the resolver creator service that can delete new instances of resolvers logger: Mandatory. Reference to the logger service tenantClientService: Mandatory. the tenant client service that creates gRPC connection and client to the tenant Returns the new instance or error if something goes wrong

func NewDeleteTenantPayloadResolver

func NewDeleteTenantPayloadResolver(
	ctx context.Context,
	resolverCreator types.ResolverCreatorContract,
	tenantID string,
	clientMutationId *string) (tenant.DeleteTenantPayloadResolverContract, error)

NewDeleteTenantPayloadResolver updates new instance of the deleteTenantPayloadResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context resolverCreator: Mandatory. Reference to the resolver creator service that can update new instances of resolvers tenantID: Mandatory. The tenant unique identifier clientMutationId: Optional. Reference to the client mutation ID Returns the new instance or error if something goes wrong

func NewUpdateTenant

func NewUpdateTenant(
	ctx context.Context,
	resolverCreator types.ResolverCreatorContract,
	logger *zap.Logger,
	tenantClientService tenant.TenantClientContract) (tenant.UpdateTenantContract, error)

NewUpdateTenant updates new instance of the updateTenant, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context resolverCreator: Mandatory. Reference to the resolver creator service that can update new instances of resolvers logger: Mandatory. Reference to the logger service tenantClientService: Mandatory. the tenant client service that creates gRPC connection and client to the tenant Returns the new instance or error if something goes wrong

func NewUpdateTenantPayloadResolver

func NewUpdateTenantPayloadResolver(
	ctx context.Context,
	resolverCreator types.ResolverCreatorContract,
	clientMutationId *string,
	tenantID string,
	tenantDetail *tenant.TenantDetail,
	cursor string) (tenant.UpdateTenantPayloadResolverContract, error)

NewUpdateTenantPayloadResolver updates new instance of the updateTenantPayloadResolver, setting up all dependencies and returns the instance ctx: Mandatory. Reference to the context resolverCreator: Mandatory. Reference to the resolver creator service that can update new instances of resolvers clientMutationId: Optional. Reference to the client mutation ID tenantID: Mandatory. The tenant unique identifier tenantDetail: Mandatory. The tenant details cursor: Mandatory. The edge cluster cursor Returns the new instance or error if something goes wrong

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier