configactions

package
v6.22.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package configactions handles all operations done to the CF Config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	Config                Config
	CloudControllerClient CloudControllerClient
}

Actor handles all operations done to the CF Config

func NewActor

func NewActor(config Config, client CloudControllerClient) Actor

NewActor returns an Actor with default settings

func (Actor) ClearTarget

func (actor Actor) ClearTarget()

func (Actor) SetTarget

func (actor Actor) SetTarget(CCAPI string, skipSSLValidation bool) (Warnings, error)

type CloudControllerClient

type CloudControllerClient interface {
	TargetCF(APIURL string, skipSSLValidation bool) (cloudcontrollerv2.Warnings, error)

	API() string
	APIVersion() string
	AuthorizationEndpoint() string
	DopplerEndpoint() string
	LoggregatorEndpoint() string
	RoutingEndpoint() string
	TokenEndpoint() string
}

type Config

type Config interface {
	SetTargetInformation(api string, apiVersion string, auth string, loggregator string, doppler string, uaa string, routing string, skipSSLValidation bool)
	SetTokenInformation(accessToken string, refreshToken string, sshOAuthClient string)
}

Config a way of getting basic CF configuration

type Warnings

type Warnings []string

Warnings is a list of warnings returned back from the cloud controller

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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