configaction

package
v6.23.0+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package configaction 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(settings TargetSettings) (Warnings, error)

type CloudControllerClient

type CloudControllerClient interface {
	TargetCF(settings ccv2.TargetSettings) (ccv2.Warnings, error)

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

type Config

type Config interface {
	Target() string
	SkipSSLValidation() bool
	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 TargetSettings

type TargetSettings ccv2.TargetSettings

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