kubernetes.v0: gopkg.in/kubernetes/kubernetes.v0/pkg/cloudprovider/mesos Index | Files

package mesos

import "gopkg.in/kubernetes/kubernetes.v0/pkg/cloudprovider/mesos"

Index

Package Files

client.go config.go mesos.go plugins.go

Constants

const (
    DefaultMesosMaster       = "localhost:5050"
    DefaultHttpClientTimeout = time.Duration(10) * time.Second
    DefaultStateCacheTTL     = time.Duration(5) * time.Second
)

type Config Uses

type Config struct {
    MesosMaster            string   `gcfg:"mesos-master"`
    MesosHttpClientTimeout Duration `gcfg:"http-client-timeout"`
    StateCacheTTL          Duration `gcfg:"state-cache-ttl"`
}

type ConfigWrapper Uses

type ConfigWrapper struct {
    Mesos_Cloud Config
}

type Duration Uses

type Duration struct {
    Duration time.Duration `gcfg:"duration"`
}

func (*Duration) UnmarshalText Uses

func (d *Duration) UnmarshalText(data []byte) error

type MesosCloud Uses

type MesosCloud struct {
    // contains filtered or unexported fields
}
var (
    ProviderName  = "mesos"
    CloudProvider *MesosCloud
)

func (*MesosCloud) AddSSHKeyToAllInstances Uses

func (c *MesosCloud) AddSSHKeyToAllInstances(user string, keyData []byte) error

func (*MesosCloud) Clusters Uses

func (c *MesosCloud) Clusters() (cloudprovider.Clusters, bool)

Clusters returns a copy of the Mesos cloud Clusters implementation. Mesos does not provide support for multiple clusters.

func (*MesosCloud) CurrentNodeName Uses

func (c *MesosCloud) CurrentNodeName(hostname string) (string, error)

Implementation of Instances.CurrentNodeName

func (*MesosCloud) ExternalID Uses

func (c *MesosCloud) ExternalID(instance string) (string, error)

ExternalID returns the cloud provider ID of the specified instance (deprecated).

func (*MesosCloud) GetNodeResources Uses

func (c *MesosCloud) GetNodeResources(name string) (*api.NodeResources, error)

GetNodeResources gets the resources for a particular node

func (*MesosCloud) InstanceID Uses

func (c *MesosCloud) InstanceID(name string) (string, error)

InstanceID returns the cloud provider ID of the specified instance.

func (*MesosCloud) Instances Uses

func (c *MesosCloud) Instances() (cloudprovider.Instances, bool)

Instances returns a copy of the Mesos cloud Instances implementation. Mesos natively provides minimal cloud-type resources. More robust cloud support requires a combination of Mesos and cloud-specific knowledge.

func (*MesosCloud) List Uses

func (c *MesosCloud) List(filter string) ([]string, error)

List lists instances that match 'filter' which is a regular expression which must match the entire instance name (fqdn).

func (*MesosCloud) ListClusters Uses

func (c *MesosCloud) ListClusters() ([]string, error)

ListClusters lists the names of the available Mesos clusters.

func (*MesosCloud) Master Uses

func (c *MesosCloud) Master(clusterName string) (string, error)

Master gets back the address (either DNS name or IP address) of the leading Mesos master node for the cluster.

func (*MesosCloud) MasterURI Uses

func (c *MesosCloud) MasterURI() string

func (*MesosCloud) NodeAddresses Uses

func (c *MesosCloud) NodeAddresses(name string) ([]api.NodeAddress, error)

NodeAddresses returns the addresses of the specified instance.

func (*MesosCloud) ProviderName Uses

func (c *MesosCloud) ProviderName() string

ProviderName returns the cloud provider ID.

func (*MesosCloud) Routes Uses

func (c *MesosCloud) Routes() (cloudprovider.Routes, bool)

Routes always returns nil, false in this implementation.

func (*MesosCloud) TCPLoadBalancer Uses

func (c *MesosCloud) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)

TCPLoadBalancer always returns nil, false in this implementation. Mesos does not provide any type of native load balancing by default, so this implementation always returns (nil, false).

func (*MesosCloud) Zones Uses

func (c *MesosCloud) Zones() (cloudprovider.Zones, bool)

Zones always returns nil, false in this implementation. Mesos does not provide any type of native region or zone awareness, so this implementation always returns (nil, false).

Package mesos imports 20 packages (graph). Updated 2016-07-25. Refresh now. Tools for package owners.