graphqlclient

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGraphQLClient

func NewGraphQLClient(url string, timeout time.Duration) *gcli.Client

NewGraphQLClient missing godoc

Types

type Director

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

Director is an GraphQLClient implementation

func NewDirector

func NewDirector(client GraphQLClient) *Director

NewDirector creates new director with given client

func (*Director) DeleteTenants

func (d *Director) DeleteTenants(ctx context.Context, tenants []graphql.BusinessTenantMappingInput) error

DeleteTenants makes graphql query for tenant deletion

func (*Director) ExistsTenantByExternalID

func (d *Director) ExistsTenantByExternalID(ctx context.Context, tenantID string) (bool, error)

ExistsTenantByExternalID makes graphql query to check if tenant exists

func (*Director) SubscribeTenant

func (d *Director) SubscribeTenant(ctx context.Context, providerID, subaccountID, providerSubaccountID, consumerTenantID, region, subscriptionProviderAppName, subscriptionPayload string) error

SubscribeTenant makes graphql query tenant subscription

func (*Director) UnsubscribeTenant

func (d *Director) UnsubscribeTenant(ctx context.Context, providerID, subaccountID, providerSubaccountID, consumerTenantID, region, subscriptionPayload string) error

UnsubscribeTenant makes graphql query tenant unsubscription

func (*Director) UpdateTenant

func (d *Director) UpdateTenant(ctx context.Context, id string, tenant graphql.BusinessTenantMappingInput) error

UpdateTenant makes graphql query for tenant update

func (*Director) WriteTenants

func (d *Director) WriteTenants(ctx context.Context, tenants []graphql.BusinessTenantMappingInput) error

WriteTenants makes graphql query for tenant creation

type GraphQLClient

type GraphQLClient interface {
	Run(context.Context, *gcli.Request, interface{}) error
}

GraphQLClient expects graphql implementation

type TenantResponse

type TenantResponse struct {
	Result *graphql.Tenant `json:"result"`
}

TenantResponse represents Tenant object from GraphQL response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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