provider

package
v0.0.0-...-fc157e7 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 3

README

provider

-- import "github.com/Zemanta/mrgob/runner/provider"

Usage

var (
	ErrClusterNotFound  = fmt.Errorf("EMR cluster not found")
	ErrInstanceNotFound = fmt.Errorf("EMR instance not found")
)
type EmrProvider
type EmrProvider struct {
}
func NewEmrProvider
func NewEmrProvider(clusterName string, sshConfig *ssh.ClientConfig, awsConfig *aws.Config) *EmrProvider
func (*EmrProvider) GetMasterHost
func (e *EmrProvider) GetMasterHost() (master string, err error)
func (*EmrProvider) GetMasterSSHClient
func (e *EmrProvider) GetMasterSSHClient() (*ssh.Client, error)
func (*EmrProvider) GetNextSSHClient
func (e *EmrProvider) GetNextSSHClient() (*ssh.Client, error)
type HadoopProvider
type HadoopProvider interface {
	GetMasterHost() (string, error)
	GetMasterSSHClient() (*ssh.Client, error)
	GetNextSSHClient() (*ssh.Client, error)
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClusterNotFound  = fmt.Errorf("EMR cluster not found")
	ErrInstanceNotFound = fmt.Errorf("EMR instance not found")
)

Functions

This section is empty.

Types

type EmrProvider

type EmrProvider struct {
	// contains filtered or unexported fields
}

func NewEmrProvider

func NewEmrProvider(clusterName string, sshConfig *ssh.ClientConfig, awsConfig *aws.Config) *EmrProvider

func (*EmrProvider) GetMasterHost

func (e *EmrProvider) GetMasterHost() (master string, err error)

func (*EmrProvider) GetMasterSSHClient

func (e *EmrProvider) GetMasterSSHClient() (*ssh.Client, error)

type HadoopProvider

type HadoopProvider interface {
	GetMasterHost() (string, error)
	GetMasterSSHClient() (*ssh.Client, error)
}

Jump to

Keyboard shortcuts

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