scraping

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2018 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TfObject added in v0.0.6

type TfObject interface {
	Doc(...bool) (doc []string)
}

TfObject is terraform provider or resource interface

type TfProvider added in v0.0.6

type TfProvider struct {
	Name         string
	ResourceList []string
}

TfProvider is terraform provider object such as aws, azurerm, google

func (*TfProvider) Doc added in v0.0.6

func (t *TfProvider) Doc(dummy ...bool) []string

Doc return terraform document

type TfResource

type TfResource struct {
	Name        string
	Description string
	Args        []*tfResourceArg
}

TfResource is terraform resrouce object such as aws_instance, grafana_dashboard

func (*TfResource) Doc added in v0.0.6

func (t *TfResource) Doc(opts ...bool) []string

Doc return terraform document

func (*TfResource) Snippet added in v0.0.6

func (t *TfResource) Snippet(needlessComment bool, requiredOnly bool) []string

Snippet return terraform resrouce snippet

type TfScraper added in v0.0.6

type TfScraper struct {
	Name    string
	DocType string
	URL     string
}

TfScraper scrape terraform document

func NewScraper added in v0.0.6

func NewScraper(docType string, name string) (*TfScraper, error)

NewScraper return new TfScraper from resource or provider name and that type

func (*TfScraper) Scrape added in v0.0.6

func (s *TfScraper) Scrape() (TfObject, error)

Scrape terraform document from web

Jump to

Keyboard shortcuts

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