ops_manager

package
v2.1.0+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialResponse

type CredentialResponse struct {
	Credential CredentialWrapper `json:"credential"`
}

type CredentialWrapper

type CredentialWrapper struct {
	Type  string           `json:"type"`
	Value SimpleCredential `json:"value"`
}

type DirectorProperties

type DirectorProperties struct {
	IAAS     map[string]interface{} `json:"iaas_configuration"`
	Director map[string]interface{} `json:"director_configuration"`
	Security map[string]interface{} `json:"security_configuration"`
	Syslog   map[string]interface{} `json:"syslog_configuration"`
}

type ErrorResponse

type ErrorResponse struct {
	Errors map[string][]string `json:errors`
}

type Job

type Job struct {
	Name string `json:"name"`
	Guid string `json:"guid"`
}

type JobsResponse

type JobsResponse struct {
	Jobs []Job `json:"jobs"`
}

type Product

type Product struct {
	InstallationName string `json:"installation_name"`
	Guid             string `json:"guid"`
	Type             string `json:"type"`
}

type ProductProperties

type ProductProperties struct {
	Properties map[string]Property `json:"properties"`
}

type Property

type Property struct {
	Type         string      `json:"type"`
	Configurable bool        `json:"configurable"`
	Credential   bool        `json:"credential"`
	Value        interface{} `json:"value"`
	Optional     bool        `json:"optional"`
}

type Resource

type Resource struct {
	RouterNames       []string    `json:"elb_names,omitempty"`
	Instances         interface{} `json:"instances,omitempty"`
	InternetConnected bool        `json:"internet_connected"`
}

type Sdk

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

func NewSdk

func NewSdk(target string, creds config.OpsManagerCredentials, logger log.Logger) (*Sdk, error)

NewSdk creates an authenticated session and object to interact with Ops Manager

func (*Sdk) ApplyChanges

func (om *Sdk) ApplyChanges() error

ApplyChanges deploys pending changes to Ops Manager

func (*Sdk) ApplyDirector

func (om *Sdk) ApplyDirector() error

func (*Sdk) AvaliableProducts

func (om *Sdk) AvaliableProducts() ([]api.ProductInfo, error)

AvaliableProducts lists products that are uploaded to Ops Manager.

func (*Sdk) ConfigureProduct

func (om *Sdk) ConfigureProduct(name, networks, properties string, resources string) error

ConfigureProduct sets up the settings for a given tile by name

func (*Sdk) DeleteInstallation

func (om *Sdk) DeleteInstallation() error

func (*Sdk) GetCredentials

func (om *Sdk) GetCredentials(name, credential string) (*SimpleCredential, error)

func (*Sdk) GetDirector

func (om *Sdk) GetDirector() (*DirectorProperties, error)

GetDirector fetches settings for the BOSH director

func (*Sdk) GetDirectorCredentials added in v1.1.0

func (om *Sdk) GetDirectorCredentials(credential string) (*SimpleCredential, error)

func (*Sdk) GetDirectorIP added in v1.1.0

func (om *Sdk) GetDirectorIP() (string, error)

func (*Sdk) GetProduct

func (om *Sdk) GetProduct(name string) (*ProductProperties, error)

GetProduct fetches settings for a given tile by name

func (*Sdk) GetResource

func (om *Sdk) GetResource(tileName, jobName string) (*Resource, error)

GetResource fetches resource settings for a specific job of a tile

func (*Sdk) Online

func (om *Sdk) Online() bool

Online checks if Ops Manager is running on the target.

func (*Sdk) ReadyForAuth

func (om *Sdk) ReadyForAuth() bool

ReadyForAuth checks if the Ops Manager authentication system is ready

func (*Sdk) SetupAuth

func (om *Sdk) SetupAuth() error

SetupAuth configures the initial username, password, and decryptionPhrase

func (*Sdk) SetupBosh

SetupBosh applies the provided configuration to the BOSH director tile

func (*Sdk) StageProduct

func (om *Sdk) StageProduct(tile config.OpsManagerMetadata) error

StageProduct moves a given name, version to the list of tiles that will be deployed

func (*Sdk) Unlock

func (om *Sdk) Unlock() error

Unlock decrypts Ops Manager. This is needed after a reboot before attempting to authenticate. This task runs asynchronously. Query the status by invoking ReadyForAuth.

func (*Sdk) UploadProduct

func (om *Sdk) UploadProduct(path string) error

UploadProduct pushes a given file located locally at path to the target

func (*Sdk) UploadStemcell

func (om *Sdk) UploadStemcell(path string) error

UploadStemcell pushes a given stemcell located locally at path to the target

type SimpleCredential

type SimpleCredential struct {
	Identity string `json:"identity"`
	Password string `json:"password"`
}

type StaticIP added in v1.1.0

type StaticIP struct {
	Name string   `json:"name"`
	IPs  []string `json:"ips"`
}

type UnlockRequest

type UnlockRequest struct {
	Passphrase string `json:"passphrase"`
}

Jump to

Keyboard shortcuts

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