manifest

package
v0.95.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Name                 string
	HasVariables         bool
	VariablesAreOptional bool
	Dependency           *v2wundergraphapi.ApiDependency
	RawConfig            string
}

type IntegrationsTemplateData

type IntegrationsTemplateData struct {
	Organizations []*Organization
}

type Manifest

type Manifest struct {
	Dependencies []string `json:"dependencies"`
	// contains filtered or unexported fields
}

func New

func New(log abstractlogger.Logger, client *v2wundergraphapi.Client, wundergraphDir string) *Manifest

func (*Manifest) AddDependencies

func (m *Manifest) AddDependencies(dependencies []string) error

func (*Manifest) Load

func (m *Manifest) Load() error

Load loads the WunderGraph manifest from the file system.

func (*Manifest) PersistChanges

func (m *Manifest) PersistChanges() error

func (*Manifest) RemoveDependencies

func (m *Manifest) RemoveDependencies(dependencies []string) error

func (*Manifest) RenderIntegrationsTemplate

func (m *Manifest) RenderIntegrationsTemplate(out io.Writer) error

func (*Manifest) Save

func (m *Manifest) Save() error

Save saves the WunderGraph manifest to the file system.

func (*Manifest) WriteIntegrationsFile

func (m *Manifest) WriteIntegrationsFile() error

type Organization

type Organization struct {
	Name string
	Apis []*Api
}

Jump to

Keyboard shortcuts

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