Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iaas

type Iaas interface {
	CreateMachine() (*Machine, error)
	DeleteMachine() error
}

    Iaas represents a infresture service

    type Machine

    type Machine struct {
    	ID        string `json:"id"`
    	IP        string `json:"ip"`
    	Port      int    `json:"port"`
    	Image     string `json:"image"`
    	Name      string `json:"name"`
    	Kind      string `json:"kind"`
    	SSHKeysID []int  `json:"ssh_keys_id"`
    	CertsDir  string `json:"certs_dir"`
    }

      Machine defines a generic machine

      type Provider

      type Provider struct {
      	Client     libmachine.API
      	Host       *host.Host
      	Name       string
      	ClientPath string
      	Region     string
      	Size       string
      	ImageSlug  string
      	KeyID      int
      	DiskSize   int
      	Reused     bool
      }

        Provider for gofn

        type ProviderOpts

        type ProviderOpts func(*Provider) error

          ProviderOpts override defaults

          func IsReused

          func IsReused(reused bool) ProviderOpts

            IsReused func

            func WithClientPath

            func WithClientPath(path string) ProviderOpts

              WithClientPath func

              func WithDiskSize

              func WithDiskSize(size int) ProviderOpts

                WithDiskSize func

                func WithKeyID

                func WithKeyID(keyID int) ProviderOpts

                  WithKeyID func

                  func WithName

                  func WithName(name string) ProviderOpts

                    WithName func

                    func WithRegion

                    func WithRegion(region string) ProviderOpts

                      WithRegion func

                      func WithSO

                      func WithSO(so string) ProviderOpts

                        WithSO func

                        func WithSize

                        func WithSize(size string) ProviderOpts

                          WithSize func

                          Source Files

                          Directories

                          Path Synopsis