graphql

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QUERY_LATEST_ALL = `` /* 151-byte string literal not displayed */

	QUERY_LATEST_BY_KEY = `` /* 170-byte string literal not displayed */

	QUERY_BY_VERSION_BY_KEY = `` /* 185-byte string literal not displayed */

	QUERY_BY_VERSION_LATEST = `` /* 148-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func Delete

func Delete(ctx context.ServiceContext, client *clients.GQLClient, options *DeleteOptions) error

func Get

func Get(ctx context.ServiceContext, client *clients.GQLClient, options *GetOptions) (*commons.Secret, error)

func Set

func Set(ctx context.ServiceContext, client *clients.GQLClient, options *SetOptions) (*commons.Secret, error)

Types

type DeleteOptions

type DeleteOptions struct {
	EnvID   string `json:"env_id"`
	Version int    `json:"version"`
}

type GetOptions

type GetOptions struct {
	Key     string `json:"key"`
	EnvID   string `json:"env_id"`
	Version *int   `json:"version,omitempty"`
}

func (*GetOptions) NewRequest

func (o *GetOptions) NewRequest() *graphql.Request

Returns the appropriate GraphQL query to use based on available options.

type SetOptions

type SetOptions struct {
	EnvID   string                      `json:"env_id"`
	Data    map[string]*payload.Payload `json:"data"`
	Version *int                        `json:"version,omitempty"`
}

Jump to

Keyboard shortcuts

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