apiv1

package
v0.0.0-...-8a3299a Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Name        string `json:"name"`
	Type        string `json:"type"`
	Description string `json:"description"`
	Default     string `json:"default"`
	Required    bool   `json:"required"`
}

type ListLatestVersionOptions

type ListLatestVersionOptions struct {
	Offset int64 `form:"offset" url:"offset,omitempty"`
}

type ListOptions

type ListOptions struct {
	Offset   int64  `form:"offset" url:"offset,omitempty"`
	Provider string `form:"provider" url:"provider,omitempty"`
	Verified bool   `form:"verified" url:"verified,omitempty"`
}

type Module

type Module struct {
	ID          string    `json:"id"`
	Owner       string    `json:"owner"`
	Namespace   string    `json:"namespace"`
	Name        string    `json:"name"`
	Version     string    `json:"version"`
	Provider    string    `json:"provider"`
	Description string    `json:"description"`
	Source      string    `json:"source"`
	Tag         string    `json:"tag"`
	PublishedAt time.Time `json:"published_at"`
	Downloads   int       `json:"downloads"`
	Verified    bool      `json:"verified"`
	Root        Root      `json:"root"`
	Submodules  []Root    `json:"submodules"`
	Providers   []string  `json:"providers"`
	Versions    []string  `json:"versions"`
}

type ModuleList

type ModuleList struct {
	Meta    pkg.Meta `json:"meta"`
	Modules []Module `json:"modules"`
}

type Output

type Output struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type Provider

type Provider struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Source    string `json:"source"`
	Version   string `json:"version"`
}

type Resource

type Resource struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type Root

type Root struct {
	Path                 string        `json:"path"`
	Name                 string        `json:"name"`
	Readme               string        `json:"readme"`
	Empty                bool          `json:"empty"`
	Inputs               []Input       `json:"inputs"`
	Outputs              []Output      `json:"outputs"`
	Dependencies         []interface{} `json:"dependencies"`
	ProviderDependencies []Provider    `json:"provider_dependencies"`
	Resources            []Resource    `json:"resources"`
}

type SearchOptions

type SearchOptions struct {
	Q         string `form:"q" url:"q,omitempty"`
	Offset    int64  `form:"offset" url:"offset,omitempty"`
	Provider  string `form:"provider" url:"provider,omitempty"`
	Namespace string `form:"namespace" url:"namespace,omitempty"`
	Verified  bool   `form:"verified" url:"verified,omitempty"`
}

type Version

type Version struct {
	Version string `json:"version"`
	Root    struct {
		Providers    []Provider    `json:"providers"`
		Dependencies []interface{} `json:"dependencies"`
	} `json:"root"`
	Submodules []struct {
		Path         string        `json:"path"`
		Providers    []Provider    `json:"providers"`
		Dependencies []interface{} `json:"dependencies"`
	} `json:"submodules"`
}

type VersionList

type VersionList struct {
	Modules []struct {
		Source   string    `json:"source"`
		Versions []Version `json:"versions"`
	} `json:"modules"`
}

Jump to

Keyboard shortcuts

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