api

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 8 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

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
	ManifestID       string
	TargetID         string
	ActiveDeployment Deployment
}

func GetPackage

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

Jump to

Keyboard shortcuts

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