orb

package
v0.1.29658 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	OrbQuery(configPath string, ownerId string) (*api.ConfigResponse, error)
}

func NewClient

func NewClient(config *settings.Config) (Client, error)

type OrbIntrospectionResponse

type OrbIntrospectionResponse struct {
	Schema struct {
		Query struct {
			Fields []struct {
				Name string `json:"name"`
				Args []struct {
					Name string `json:"name"`
				} `json:"args"`
			} `json:"fields"`
		} `json:"queryType"`
	} `json:"__schema"`
}

type QueryResponse

type QueryResponse struct {
	OrbConfig struct {
		api.ConfigResponse
	}
}

ConfigResponse is a structure that matches the result of the GQL query, so that we can use mapstructure to convert from nested maps to a strongly typed struct.

Jump to

Keyboard shortcuts

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