hosting

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileWithContents

func CreateFileWithContents(path string, contents string) error

CreateFileWithContents is a helper for hosting

func Register

func Register(name string, provider Provider)

Register stores a provider in the map

Types

type Provider

type Provider interface {
	Name() string
	Description() string
	Install() error
}

Provider is an interface that all hosting providers will implement

func GetProvider

func GetProvider(name string) Provider

GetProvider returns a single provider by name

func Providers

func Providers() []Provider

Providers returns the list of registered providers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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