openstack

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2017 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateNode(*kubernikus_v1.Kluster, *models.NodePool, []byte) (string, error)
	DeleteNode(*kubernikus_v1.Kluster, string) error
	GetNodes(*kubernikus_v1.Kluster, *models.NodePool) ([]Node, error)

	GetProject(id string) (*Project, error)
	GetRegion() (string, error)
	GetRouters(project_id string) ([]Router, error)
	DeleteUser(username, domainID string) error
	CreateKlusterServiceUser(username, password, domain, defaultProjectID string) error
	GetKubernikusCatalogEntry() (string, error)
}

func NewClient

func NewClient(secrets typedv1.SecretInterface, klusterEvents cache.SharedIndexInformer, authURL, username, password, domain, project, projectDomain string) Client

type Network

type Network struct {
	ID      string
	Subnets []Subnet
}

type Node

type Node struct {
	servers.Server
	StateExt
}

func ExtractServers

func ExtractServers(r pagination.Page) ([]Node, error)

func (*Node) Running

func (n *Node) Running() bool

func (*Node) Starting

func (n *Node) Starting() bool

func (*Node) Stopping

func (n *Node) Stopping() bool

type Project

type Project struct {
	ID       string
	Name     string
	Domain   string
	DomainID string
}

type Router

type Router struct {
	ID       string
	Networks []Network
}

type ScopedClient added in v1.2.0

type ScopedClient interface {
	GetMetadata() (*models.OpenstackMetadata, error)
}

func NewScopedClient added in v1.2.0

func NewScopedClient(authOptions *tokens.AuthOptions) (ScopedClient, error)

type StateExt

type StateExt struct {
	TaskState  string `json:"OS-EXT-STS:task_state"`
	VMState    string `json:"OS-EXT-STS:vm_state"`
	PowerState int    `json:"OS-EXT-STS:power_state"`
}

func (*StateExt) UnmarshalJSON

func (r *StateExt) UnmarshalJSON(b []byte) error

type Subnet

type Subnet struct {
	ID   string
	CIDR string
}

Source Files

  • client.go
  • metadata.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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