provider

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportDocs

func ImportDocs(d *Docs) ([]string, error)

ImportDocs of a Docs

Types

type Attributes

type Attributes struct {
	Name     string
	FullName string `json:"full-name"`
	Source   string
}

Attributes of Provider

type Docs

type Docs struct {
	ID         string `json:"id"`
	Attributes *DocsAttributes
}

Docs of provider

type DocsAttributes

type DocsAttributes struct {
	Title, Category, Content string
}

DocsAttributes of provider

type Provider

type Provider struct {
	ID         string `json:"id"`
	Attributes *Attributes
	// contains filtered or unexported fields
}

Provider of Resources

func New

func New(name string) (*Provider, error)

New Provider

func (*Provider) LatestVersion

func (p *Provider) LatestVersion() *Version

LatestVersion of the Provider

func (p *Provider) SelfLink() string

SelfLink of the Provider

func (*Provider) Versions

func (p *Provider) Versions() []*Version

Versions of the Provider (will cache)

type Version

type Version struct {
	ID string `json:"id"`
	// contains filtered or unexported fields
}

Version of provider

func (*Version) Docs

func (v *Version) Docs() []*Docs

Docs of the Version (will cache)

func (*Version) ResourceDocs

func (v *Version) ResourceDocs(name string) (*Docs, error)

ResourceDocs of the Version by title

func (v *Version) SelfLink() string

SelfLink of the Version

Jump to

Keyboard shortcuts

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