v1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Name    string `json:"name"`
	Source  string `json:"source"`
	Version string `json:"version"`
}

Dependency is a module that is used from another module

type GetModuleVersionResponse

type GetModuleVersionResponse struct {
	Module
}

GetModuleVersionResponse is the response for getting a module

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"`
}

Input of a Terraform module

type ListMeta

type ListMeta struct {
	Limit         int    `json:"limit"`
	CurrentOffset int    `json:"current_offset"`
	NextOffset    int    `json:"next_offset,omitempty"`
	NextURL       string `json:"next_url,omitempty"`
	PrevOffset    int    `json:"prev_offset,omitempty"`
	PrevURL       string `json:"prev_url,omitempty"`
}

ListMeta is the meta fielt for a list response

type ListModuleVersionsResponse

type ListModuleVersionsResponse struct {
	Modules []ModuleDetailed `json:"modules"`
}

ListModuleVersionsResponse is the response for listing a module's versions

type ListModulesResponse

type ListModulesResponse struct {
	Meta    ListMeta `json:"meta"`
	Modules []Module `json:"modules"`
}

ListModulesResponse is the response for listing the modules

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,omitempty"`
	PublishedAt time.Time               `json:"published_at"`
	Downloads   int64                   `json:"downloads"`
	Verified    bool                    `json:"verified"`
	Root        ModuleVersionDetailed   `json:"root,omitmpty"`
	Submodules  []ModuleVersionDetailed `json:"submodule,omitempty"`
	Examples    []ModuleVersionDetailed `json:"examples,omitempty"`
	Providers   []string                `json:"providers,omitempty"`
	Versions    []string                `json:"versions,omitempty"`
}

Module is is a Terraform Moudle

type ModuleDetailed

type ModuleDetailed struct {
	Source   string          `json:"source"`
	Versions []ModuleVersion `json:"versions"`
}

ModuleDetailed contians the module versions

type ModuleVersion

type ModuleVersion struct {
	Version    string                  `json:"version"`
	Root       ModuleVersionDetailed   `json:"root"`
	Submodules []ModuleVersionDetailed `json:"submodules"`
}

ModuleVersion contains the module verion information

type ModuleVersionDetailed

type ModuleVersionDetailed struct {
	Path         string       `json:"path,omitempty"`
	Name         string       `json:"name,omitempty"`
	Readme       string       `json:"readme,omitempty"`
	Providers    []Provider   `json:"providers"`
	Empty        bool         `json:"empty,omitempty"`
	Inputs       []Input      `json:"inputs,omitempty"`
	Outputs      []Output     `json:"outputs,omitempty"`
	Dependencies []Dependency `json:"dependencies"`
	Resources    []Resource   `json:"resources,omitempty"`
}

ModuleVersionDetailed contains detailed infomation about just that module

type Output

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

Output of a Terraform module

type Provider

type Provider struct {
	Name    string `json:"name"`
	Version string `json:"string"`
}

Provider is information about the provider in a module

type Resource

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

Resource of a Terraform module

Jump to

Keyboard shortcuts

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