api

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

TODO: consider: https://github.com/Khan/genqlient (need to look into testing w/ it, but looks nice for a lot of queries) TODO: websocket or longpoll gql subscription - there isnt a phoenix socket impl for golang I could find, so we'll probably have to longpoll

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() *graphql.Client

func ReadParamsFromFile added in v0.4.8

func ReadParamsFromFile(path string, pkg *Package) (map[string]interface{}, error)

Types

type Deployment

type Deployment struct {
	ID     string
	Status string
}

func DeployPackage

func DeployPackage(client *graphql.Client, orgID string, name string) (*Deployment, error)

func GetDeployment

func GetDeployment(client *graphql.Client, orgID string, id string) (*Deployment, error)

type Package

type Package struct {
	ID               string
	Name             string
	NamePrefix       string
	ProjectID        string
	ManifestID       string
	TargetID         string
	ActiveDeployment Deployment
	ParamsSchema     jsonschema.Schema
}

func ConfigurePackage added in v0.4.8

func ConfigurePackage(client *graphql.Client, orgID, name, paramValuePath string) (*Package, error)

func GetPackage

func GetPackage(client *graphql.Client, orgID string, name string) (*Package, error)

func (*Package) GetMDMetadata added in v0.4.8

func (p *Package) GetMDMetadata() map[string]interface{}

type ParamString added in v0.4.8

type ParamString string

this is how we get the graphql client to understand this is a JSON type

func (ParamString) GetGraphQLType added in v0.4.8

func (p ParamString) GetGraphQLType() string

Jump to

Keyboard shortcuts

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