azure

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(db *gorm.DB, log *zap.Logger) (provider.Interface, error)

Types

type Config

type Config struct {
	Subscriptions []string `mapstructure:"subscriptions"`
	Resources     []struct {
		Name  string
		Other map[string]interface{} `mapstructure:",remain"`
	}
}

type MigrationFunc

type MigrationFunc func(db *gorm.DB) error

type Provider

type Provider struct {
	MigrationFuncs map[string]MigrationFunc
	// contains filtered or unexported fields
}

func (*Provider) Run

func (p *Provider) Run(config interface{}) error

type ResourceFunc

type ResourceFunc func(subscriptionID string, auth autorest.Authorizer, db *gorm.DB, log *zap.Logger, gConfig interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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