provider

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package provider implements the logic of generating cloud platform specific templates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	// GetType returns the provider type of the implementing provider
	GetType() ProviderType

	// MarshalFiles render the template files required by the provider. It
	// returns a map of file name and data, each entry denoting a template file.
	// Returns an error if the rendering goes wrong.
	MarshalFiles() (map[string][]byte, error)
}

Provider interface should be implemented by a provider. These methods are called by the spec package

type ProviderType

type ProviderType int

ProviderType indicates a particular managed kubernetes provider.

const (
	// NOP indicates that it is not a valid provider.
	NOP ProviderType = iota

	// GKE indicates Google Kubernetes Engine. The template generated will
	// be Google Deployment Manager Template.
	GKE

	// AKS denotes Azure Kubernetes Service. Template generated will be
	// Azure Resource Manger Templates.
	AKS

	// EKS denotes Amazon Elastic Kubernetes Service. Template generated will
	// be AWS CloudFormation Templates.
	EKS
)

func Parse

func Parse(p string) ProviderType

Parse takes a string p and return the corresponding provider type

Directories

Path Synopsis
Package aks implements AKS provider for Kubeformation.
Package aks implements AKS provider for Kubeformation.
Package gke implements GKE provider for Kubeformation.
Package gke implements GKE provider for Kubeformation.

Jump to

Keyboard shortcuts

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