Documentation ¶
Index ¶
- func NewGraphQLClient(url string, timeout time.Duration) *gcli.Client
- type Director
- func (d *Director) DeleteTenants(ctx context.Context, tenants []graphql.BusinessTenantMappingInput) error
- func (d *Director) ExistsTenantByExternalID(ctx context.Context, tenantID string) (bool, error)
- func (d *Director) SubscribeTenant(ctx context.Context, ...) error
- func (d *Director) UnsubscribeTenant(ctx context.Context, ...) error
- func (d *Director) UpdateTenant(ctx context.Context, id string, tenant graphql.BusinessTenantMappingInput) error
- func (d *Director) WriteTenants(ctx context.Context, tenants []graphql.BusinessTenantMappingInput) error
- type GraphQLClient
- type TenantResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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 ¶
GraphQLClient expects graphql implementation
type TenantResponse ¶
TenantResponse represents Tenant object from GraphQL response
Click to show internal directories.
Click to hide internal directories.