gql

package
v0.0.411-pre-1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOnType added in v0.0.371

type AddOnType string
const (
	// A Redis database
	AddOnTypeRedis AddOnType = "redis"
)

type CreateAddOnCreateAddOnCreateAddOnPayload added in v0.0.367

type CreateAddOnCreateAddOnCreateAddOnPayload struct {
	AddOn CreateAddOnCreateAddOnCreateAddOnPayloadAddOn `json:"addOn"`
}

CreateAddOnCreateAddOnCreateAddOnPayload includes the requested fields of the GraphQL type CreateAddOnPayload. The GraphQL type's documentation follows.

Autogenerated return type of CreateAddOn

func (*CreateAddOnCreateAddOnCreateAddOnPayload) GetAddOn added in v0.0.367

GetAddOn returns CreateAddOnCreateAddOnCreateAddOnPayload.AddOn, and is useful for accessing the field via an interface.

type CreateAddOnCreateAddOnCreateAddOnPayloadAddOn added in v0.0.367

type CreateAddOnCreateAddOnCreateAddOnPayloadAddOn struct {
	// The service name according to the provider
	Name string `json:"name"`
	// Public URL for this service
	PublicUrl string `json:"publicUrl"`
}

CreateAddOnCreateAddOnCreateAddOnPayloadAddOn includes the requested fields of the GraphQL type AddOn.

func (*CreateAddOnCreateAddOnCreateAddOnPayloadAddOn) GetName added in v0.0.375

GetName returns CreateAddOnCreateAddOnCreateAddOnPayloadAddOn.Name, and is useful for accessing the field via an interface.

func (*CreateAddOnCreateAddOnCreateAddOnPayloadAddOn) GetPublicUrl added in v0.0.367

GetPublicUrl returns CreateAddOnCreateAddOnCreateAddOnPayloadAddOn.PublicUrl, and is useful for accessing the field via an interface.

type CreateAddOnResponse added in v0.0.367

type CreateAddOnResponse struct {
	CreateAddOn CreateAddOnCreateAddOnCreateAddOnPayload `json:"createAddOn"`
}

CreateAddOnResponse is returned by CreateAddOn on success.

func CreateAddOn added in v0.0.367

func CreateAddOn(
	ctx context.Context,
	client graphql.Client,
	organizationId string,
	primaryRegion string,
	name string,
	planId string,
	readRegions []string,
	options interface{},
) (*CreateAddOnResponse, error)

func (*CreateAddOnResponse) GetCreateAddOn added in v0.0.367

GetCreateAddOn returns CreateAddOnResponse.CreateAddOn, and is useful for accessing the field via an interface.

type DeleteAddOnDeleteAddOnDeleteAddOnPayload added in v0.0.371

type DeleteAddOnDeleteAddOnDeleteAddOnPayload struct {
	DeletedAddOnName string `json:"deletedAddOnName"`
}

DeleteAddOnDeleteAddOnDeleteAddOnPayload includes the requested fields of the GraphQL type DeleteAddOnPayload. The GraphQL type's documentation follows.

Autogenerated return type of DeleteAddOn

func (*DeleteAddOnDeleteAddOnDeleteAddOnPayload) GetDeletedAddOnName added in v0.0.375

func (v *DeleteAddOnDeleteAddOnDeleteAddOnPayload) GetDeletedAddOnName() string

GetDeletedAddOnName returns DeleteAddOnDeleteAddOnDeleteAddOnPayload.DeletedAddOnName, and is useful for accessing the field via an interface.

type DeleteAddOnResponse added in v0.0.371

type DeleteAddOnResponse struct {
	DeleteAddOn DeleteAddOnDeleteAddOnDeleteAddOnPayload `json:"deleteAddOn"`
}

DeleteAddOnResponse is returned by DeleteAddOn on success.

func DeleteAddOn added in v0.0.371

func DeleteAddOn(
	ctx context.Context,
	client graphql.Client,
	name string,
) (*DeleteAddOnResponse, error)

func (*DeleteAddOnResponse) GetDeleteAddOn added in v0.0.371

GetDeleteAddOn returns DeleteAddOnResponse.DeleteAddOn, and is useful for accessing the field via an interface.

type GetAddOnAddOn added in v0.0.371

type GetAddOnAddOn struct {
	Id string `json:"id"`
	// The service name according to the provider
	Name string `json:"name"`
	// Public URL for this service
	PublicUrl string `json:"publicUrl"`
	// Private flycast IP address of the add-on
	PrivateIp string `json:"privateIp"`
	// Password for the add-on
	Password string `json:"password"`
	// Region where the primary instance is deployed
	PrimaryRegion string `json:"primaryRegion"`
	// Regions where replica instances are deployed
	ReadRegions []string `json:"readRegions"`
	// Organization that owns this service
	Organization GetAddOnAddOnOrganization `json:"organization"`
	// The add-on plan
	AddOnPlan GetAddOnAddOnAddOnPlan `json:"addOnPlan"`
}

GetAddOnAddOn includes the requested fields of the GraphQL type AddOn.

func (*GetAddOnAddOn) GetAddOnPlan added in v0.0.371

func (v *GetAddOnAddOn) GetAddOnPlan() GetAddOnAddOnAddOnPlan

GetAddOnPlan returns GetAddOnAddOn.AddOnPlan, and is useful for accessing the field via an interface.

func (*GetAddOnAddOn) GetId added in v0.0.371

func (v *GetAddOnAddOn) GetId() string

GetId returns GetAddOnAddOn.Id, and is useful for accessing the field via an interface.

func (*GetAddOnAddOn) GetName added in v0.0.371

func (v *GetAddOnAddOn) GetName() string

GetName returns GetAddOnAddOn.Name, and is useful for accessing the field via an interface.

func (*GetAddOnAddOn) GetOrganization added in v0.0.373

func (v *GetAddOnAddOn) GetOrganization() GetAddOnAddOnOrganization

GetOrganization returns GetAddOnAddOn.Organization, and is useful for accessing the field via an interface.

func (*GetAddOnAddOn) GetPassword added in v0.0.373

func (v *GetAddOnAddOn) GetPassword() string

GetPassword returns GetAddOnAddOn.Password, and is useful for accessing the field via an interface.

func (*GetAddOnAddOn) GetPrimaryRegion added in v0.0.371

func (v *GetAddOnAddOn) GetPrimaryRegion() string

GetPrimaryRegion returns GetAddOnAddOn.PrimaryRegion, and is useful for accessing the field via an interface.

func (*GetAddOnAddOn) GetPrivateIp added in v0.0.373

func (v *GetAddOnAddOn) GetPrivateIp() string

GetPrivateIp returns GetAddOnAddOn.PrivateIp, and is useful for accessing the field via an interface.

func (*GetAddOnAddOn) GetPublicUrl added in v0.0.371

func (v *GetAddOnAddOn) GetPublicUrl() string

GetPublicUrl returns GetAddOnAddOn.PublicUrl, and is useful for accessing the field via an interface.

func (*GetAddOnAddOn) GetReadRegions added in v0.0.371

func (v *GetAddOnAddOn) GetReadRegions() []string

GetReadRegions returns GetAddOnAddOn.ReadRegions, and is useful for accessing the field via an interface.

type GetAddOnAddOnAddOnPlan added in v0.0.371

type GetAddOnAddOnAddOnPlan struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	DisplayName string `json:"displayName"`
}

GetAddOnAddOnAddOnPlan includes the requested fields of the GraphQL type AddOnPlan.

func (*GetAddOnAddOnAddOnPlan) GetDisplayName added in v0.0.371

func (v *GetAddOnAddOnAddOnPlan) GetDisplayName() string

GetDisplayName returns GetAddOnAddOnAddOnPlan.DisplayName, and is useful for accessing the field via an interface.

func (*GetAddOnAddOnAddOnPlan) GetId added in v0.0.371

func (v *GetAddOnAddOnAddOnPlan) GetId() string

GetId returns GetAddOnAddOnAddOnPlan.Id, and is useful for accessing the field via an interface.

func (*GetAddOnAddOnAddOnPlan) GetName added in v0.0.371

func (v *GetAddOnAddOnAddOnPlan) GetName() string

GetName returns GetAddOnAddOnAddOnPlan.Name, and is useful for accessing the field via an interface.

type GetAddOnAddOnOrganization added in v0.0.373

type GetAddOnAddOnOrganization struct {
	// Unique organization slug
	Slug string `json:"slug"`
}

GetAddOnAddOnOrganization includes the requested fields of the GraphQL type Organization.

func (*GetAddOnAddOnOrganization) GetSlug added in v0.0.373

func (v *GetAddOnAddOnOrganization) GetSlug() string

GetSlug returns GetAddOnAddOnOrganization.Slug, and is useful for accessing the field via an interface.

type GetAddOnProviderAddOnProvider added in v0.0.400

type GetAddOnProviderAddOnProvider struct {
	Id              string                                               `json:"id"`
	Name            string                                               `json:"name"`
	ExcludedRegions []GetAddOnProviderAddOnProviderExcludedRegionsRegion `json:"excludedRegions"`
}

GetAddOnProviderAddOnProvider includes the requested fields of the GraphQL type AddOnProvider.

func (*GetAddOnProviderAddOnProvider) GetExcludedRegions added in v0.0.400

GetExcludedRegions returns GetAddOnProviderAddOnProvider.ExcludedRegions, and is useful for accessing the field via an interface.

func (*GetAddOnProviderAddOnProvider) GetId added in v0.0.400

GetId returns GetAddOnProviderAddOnProvider.Id, and is useful for accessing the field via an interface.

func (*GetAddOnProviderAddOnProvider) GetName added in v0.0.400

GetName returns GetAddOnProviderAddOnProvider.Name, and is useful for accessing the field via an interface.

type GetAddOnProviderAddOnProviderExcludedRegionsRegion added in v0.0.400

type GetAddOnProviderAddOnProviderExcludedRegionsRegion struct {
	// The IATA airport code for this region
	Code string `json:"code"`
}

GetAddOnProviderAddOnProviderExcludedRegionsRegion includes the requested fields of the GraphQL type Region.

func (*GetAddOnProviderAddOnProviderExcludedRegionsRegion) GetCode added in v0.0.400

GetCode returns GetAddOnProviderAddOnProviderExcludedRegionsRegion.Code, and is useful for accessing the field via an interface.

type GetAddOnProviderResponse added in v0.0.400

type GetAddOnProviderResponse struct {
	AddOnProvider GetAddOnProviderAddOnProvider `json:"addOnProvider"`
}

GetAddOnProviderResponse is returned by GetAddOnProvider on success.

func GetAddOnProvider added in v0.0.400

func GetAddOnProvider(
	ctx context.Context,
	client graphql.Client,
	name string,
) (*GetAddOnProviderResponse, error)

func (*GetAddOnProviderResponse) GetAddOnProvider added in v0.0.400

GetAddOnProvider returns GetAddOnProviderResponse.AddOnProvider, and is useful for accessing the field via an interface.

type GetAddOnResponse added in v0.0.371

type GetAddOnResponse struct {
	// Find an add-on by ID or name
	AddOn GetAddOnAddOn `json:"addOn"`
}

GetAddOnResponse is returned by GetAddOn on success.

func GetAddOn added in v0.0.371

func GetAddOn(
	ctx context.Context,
	client graphql.Client,
	name string,
) (*GetAddOnResponse, error)

func (*GetAddOnResponse) GetAddOn added in v0.0.371

func (v *GetAddOnResponse) GetAddOn() GetAddOnAddOn

GetAddOn returns GetAddOnResponse.AddOn, and is useful for accessing the field via an interface.

type ListAddOnPlansAddOnPlansAddOnPlanConnection added in v0.0.366

type ListAddOnPlansAddOnPlansAddOnPlanConnection struct {
	// A list of nodes.
	Nodes []ListAddOnPlansAddOnPlansAddOnPlanConnectionNodesAddOnPlan `json:"nodes"`
}

ListAddOnPlansAddOnPlansAddOnPlanConnection includes the requested fields of the GraphQL type AddOnPlanConnection. The GraphQL type's documentation follows.

The connection type for AddOnPlan.

func (*ListAddOnPlansAddOnPlansAddOnPlanConnection) GetNodes added in v0.0.366

GetNodes returns ListAddOnPlansAddOnPlansAddOnPlanConnection.Nodes, and is useful for accessing the field via an interface.

type ListAddOnPlansAddOnPlansAddOnPlanConnectionNodesAddOnPlan added in v0.0.366

type ListAddOnPlansAddOnPlansAddOnPlanConnectionNodesAddOnPlan struct {
	Id            string `json:"id"`
	DisplayName   string `json:"displayName"`
	MaxDataSize   string `json:"maxDataSize"`
	PricePerMonth int    `json:"pricePerMonth"`
}

ListAddOnPlansAddOnPlansAddOnPlanConnectionNodesAddOnPlan includes the requested fields of the GraphQL type AddOnPlan.

func (*ListAddOnPlansAddOnPlansAddOnPlanConnectionNodesAddOnPlan) GetDisplayName added in v0.0.366

GetDisplayName returns ListAddOnPlansAddOnPlansAddOnPlanConnectionNodesAddOnPlan.DisplayName, and is useful for accessing the field via an interface.

func (*ListAddOnPlansAddOnPlansAddOnPlanConnectionNodesAddOnPlan) GetId added in v0.0.366

GetId returns ListAddOnPlansAddOnPlansAddOnPlanConnectionNodesAddOnPlan.Id, and is useful for accessing the field via an interface.

func (*ListAddOnPlansAddOnPlansAddOnPlanConnectionNodesAddOnPlan) GetMaxDataSize added in v0.0.366

GetMaxDataSize returns ListAddOnPlansAddOnPlansAddOnPlanConnectionNodesAddOnPlan.MaxDataSize, and is useful for accessing the field via an interface.

func (*ListAddOnPlansAddOnPlansAddOnPlanConnectionNodesAddOnPlan) GetPricePerMonth added in v0.0.366

GetPricePerMonth returns ListAddOnPlansAddOnPlansAddOnPlanConnectionNodesAddOnPlan.PricePerMonth, and is useful for accessing the field via an interface.

type ListAddOnPlansResponse added in v0.0.366

type ListAddOnPlansResponse struct {
	// List add-on service plans
	AddOnPlans ListAddOnPlansAddOnPlansAddOnPlanConnection `json:"addOnPlans"`
}

ListAddOnPlansResponse is returned by ListAddOnPlans on success.

func ListAddOnPlans added in v0.0.366

func ListAddOnPlans(
	ctx context.Context,
	client graphql.Client,
) (*ListAddOnPlansResponse, error)

func (*ListAddOnPlansResponse) GetAddOnPlans added in v0.0.366

GetAddOnPlans returns ListAddOnPlansResponse.AddOnPlans, and is useful for accessing the field via an interface.

type ListAddOnsAddOnsAddOnConnection added in v0.0.371

type ListAddOnsAddOnsAddOnConnection struct {
	// A list of nodes.
	Nodes []ListAddOnsAddOnsAddOnConnectionNodesAddOn `json:"nodes"`
}

ListAddOnsAddOnsAddOnConnection includes the requested fields of the GraphQL type AddOnConnection. The GraphQL type's documentation follows.

The connection type for AddOn.

func (*ListAddOnsAddOnsAddOnConnection) GetNodes added in v0.0.371

GetNodes returns ListAddOnsAddOnsAddOnConnection.Nodes, and is useful for accessing the field via an interface.

type ListAddOnsAddOnsAddOnConnectionNodesAddOn added in v0.0.371

type ListAddOnsAddOnsAddOnConnectionNodesAddOn struct {
	Id string `json:"id"`
	// The service name according to the provider
	Name string `json:"name"`
	// The add-on plan
	AddOnPlan ListAddOnsAddOnsAddOnConnectionNodesAddOnAddOnPlan `json:"addOnPlan"`
	// Private flycast IP address of the add-on
	PrivateIp string `json:"privateIp"`
	// Region where the primary instance is deployed
	PrimaryRegion string `json:"primaryRegion"`
	// Regions where replica instances are deployed
	ReadRegions []string `json:"readRegions"`
	// Organization that owns this service
	Organization ListAddOnsAddOnsAddOnConnectionNodesAddOnOrganization `json:"organization"`
}

ListAddOnsAddOnsAddOnConnectionNodesAddOn includes the requested fields of the GraphQL type AddOn.

func (*ListAddOnsAddOnsAddOnConnectionNodesAddOn) GetAddOnPlan added in v0.0.371

GetAddOnPlan returns ListAddOnsAddOnsAddOnConnectionNodesAddOn.AddOnPlan, and is useful for accessing the field via an interface.

func (*ListAddOnsAddOnsAddOnConnectionNodesAddOn) GetId added in v0.0.371

GetId returns ListAddOnsAddOnsAddOnConnectionNodesAddOn.Id, and is useful for accessing the field via an interface.

func (*ListAddOnsAddOnsAddOnConnectionNodesAddOn) GetName added in v0.0.371

GetName returns ListAddOnsAddOnsAddOnConnectionNodesAddOn.Name, and is useful for accessing the field via an interface.

func (*ListAddOnsAddOnsAddOnConnectionNodesAddOn) GetOrganization added in v0.0.371

GetOrganization returns ListAddOnsAddOnsAddOnConnectionNodesAddOn.Organization, and is useful for accessing the field via an interface.

func (*ListAddOnsAddOnsAddOnConnectionNodesAddOn) GetPrimaryRegion added in v0.0.371

func (v *ListAddOnsAddOnsAddOnConnectionNodesAddOn) GetPrimaryRegion() string

GetPrimaryRegion returns ListAddOnsAddOnsAddOnConnectionNodesAddOn.PrimaryRegion, and is useful for accessing the field via an interface.

func (*ListAddOnsAddOnsAddOnConnectionNodesAddOn) GetPrivateIp added in v0.0.373

GetPrivateIp returns ListAddOnsAddOnsAddOnConnectionNodesAddOn.PrivateIp, and is useful for accessing the field via an interface.

func (*ListAddOnsAddOnsAddOnConnectionNodesAddOn) GetReadRegions added in v0.0.371

func (v *ListAddOnsAddOnsAddOnConnectionNodesAddOn) GetReadRegions() []string

GetReadRegions returns ListAddOnsAddOnsAddOnConnectionNodesAddOn.ReadRegions, and is useful for accessing the field via an interface.

type ListAddOnsAddOnsAddOnConnectionNodesAddOnAddOnPlan added in v0.0.371

type ListAddOnsAddOnsAddOnConnectionNodesAddOnAddOnPlan struct {
	DisplayName string `json:"displayName"`
}

ListAddOnsAddOnsAddOnConnectionNodesAddOnAddOnPlan includes the requested fields of the GraphQL type AddOnPlan.

func (*ListAddOnsAddOnsAddOnConnectionNodesAddOnAddOnPlan) GetDisplayName added in v0.0.372

GetDisplayName returns ListAddOnsAddOnsAddOnConnectionNodesAddOnAddOnPlan.DisplayName, and is useful for accessing the field via an interface.

type ListAddOnsAddOnsAddOnConnectionNodesAddOnOrganization added in v0.0.371

type ListAddOnsAddOnsAddOnConnectionNodesAddOnOrganization struct {
	Id string `json:"id"`
	// Unique organization slug
	Slug string `json:"slug"`
}

ListAddOnsAddOnsAddOnConnectionNodesAddOnOrganization includes the requested fields of the GraphQL type Organization.

func (*ListAddOnsAddOnsAddOnConnectionNodesAddOnOrganization) GetId added in v0.0.371

GetId returns ListAddOnsAddOnsAddOnConnectionNodesAddOnOrganization.Id, and is useful for accessing the field via an interface.

func (*ListAddOnsAddOnsAddOnConnectionNodesAddOnOrganization) GetSlug added in v0.0.371

GetSlug returns ListAddOnsAddOnsAddOnConnectionNodesAddOnOrganization.Slug, and is useful for accessing the field via an interface.

type ListAddOnsResponse added in v0.0.371

type ListAddOnsResponse struct {
	// List add-ons associated with an organization
	AddOns ListAddOnsAddOnsAddOnConnection `json:"addOns"`
}

ListAddOnsResponse is returned by ListAddOns on success.

func ListAddOns added in v0.0.371

func ListAddOns(
	ctx context.Context,
	client graphql.Client,
	addOnType AddOnType,
) (*ListAddOnsResponse, error)

func (*ListAddOnsResponse) GetAddOns added in v0.0.371

GetAddOns returns ListAddOnsResponse.AddOns, and is useful for accessing the field via an interface.

type UpdateAddOnResponse added in v0.0.371

type UpdateAddOnResponse struct {
	UpdateAddOn UpdateAddOnUpdateAddOnUpdateAddOnPayload `json:"updateAddOn"`
}

UpdateAddOnResponse is returned by UpdateAddOn on success.

func UpdateAddOn added in v0.0.371

func UpdateAddOn(
	ctx context.Context,
	client graphql.Client,
	addOnId string,
	planId string,
	readRegions []string,
) (*UpdateAddOnResponse, error)

func (*UpdateAddOnResponse) GetUpdateAddOn added in v0.0.371

GetUpdateAddOn returns UpdateAddOnResponse.UpdateAddOn, and is useful for accessing the field via an interface.

type UpdateAddOnUpdateAddOnUpdateAddOnPayload added in v0.0.371

type UpdateAddOnUpdateAddOnUpdateAddOnPayload struct {
	AddOn UpdateAddOnUpdateAddOnUpdateAddOnPayloadAddOn `json:"addOn"`
}

UpdateAddOnUpdateAddOnUpdateAddOnPayload includes the requested fields of the GraphQL type UpdateAddOnPayload. The GraphQL type's documentation follows.

Autogenerated return type of UpdateAddOn

func (*UpdateAddOnUpdateAddOnUpdateAddOnPayload) GetAddOn added in v0.0.371

GetAddOn returns UpdateAddOnUpdateAddOnUpdateAddOnPayload.AddOn, and is useful for accessing the field via an interface.

type UpdateAddOnUpdateAddOnUpdateAddOnPayloadAddOn added in v0.0.371

type UpdateAddOnUpdateAddOnUpdateAddOnPayloadAddOn struct {
	Id string `json:"id"`
}

UpdateAddOnUpdateAddOnUpdateAddOnPayloadAddOn includes the requested fields of the GraphQL type AddOn.

func (*UpdateAddOnUpdateAddOnUpdateAddOnPayloadAddOn) GetId added in v0.0.371

GetId returns UpdateAddOnUpdateAddOnUpdateAddOnPayloadAddOn.Id, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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