exporter

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient added in v0.7.11

type APIClient interface {
	IndicatorDocuments() ([]registry.APIDocumentResponse, error)
}

type Controller

type Controller struct {
	Config ControllerConfig
}

func NewController

func NewController(c ControllerConfig) *Controller

func (*Controller) Start

func (c *Controller) Start()

func (*Controller) Update

func (c *Controller) Update() error

type ControllerConfig

type ControllerConfig struct {
	RegistryAPIClient APIClient
	Filesystem        billy.Filesystem
	OutputDirectory   string
	UpdateFrequency   time.Duration
	DocType           string
	Converter         DocumentConverter
	Reloader          Reloader
}

type DocumentConverter

type DocumentConverter func(v1.IndicatorDocument) (*File, error)

type File

type File struct {
	Name     string
	Contents []byte
}

type Reloader

type Reloader func() error

Jump to

Keyboard shortcuts

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