Documentation ¶
Index ¶
- Constants
- type Application
- type ApplicationReconciler
- type CLIClient
- type Config
- type DockerConfig
- type Manifest
- type Metadata
- type RetryRequest
- type Route
- type Service
- type ServiceReconciler
- type Session
- func (s *Session) AccessToken() string
- func (s *Session) BinaryName() string
- func (s *Session) CurrentUserName() (string, error)
- func (s *Session) HasTargetedOrganization() bool
- func (s *Session) HasTargetedSpace() bool
- func (s *Session) RefreshToken() string
- func (s *Session) TargetedOrganization() configv3.Organization
- func (s *Session) TargetedOrganizationName() string
- func (s *Session) TargetedSpace() configv3.Space
- func (s *Session) Verbose() (bool, []string)
- type Sidecar
Constants ¶
View Source
const DefaultWorkDir = ""
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Name string `json:"name,omitempty"` Docker *DockerConfig `yaml:"docker,omitempty"` Metadata *Metadata `yaml:"metadata,omitempty"` Memory string `yaml:"memory,omitempty"` DiskQuota string `yaml:"disk_quota,omitempty"` Path string `yaml:"path,omitempty"` Buildpacks []string `yaml:"buildpacks,omitempty"` Routes []Route `yaml:"routes,omitempty"` NoRoute bool `yaml:"no-route,omitempty"` HealthCheckType string `yaml:"health-check-type,omitempty"` Env map[string]string `yaml:"env,omitempty"` Instances int `yaml:"intances,omitempty"` Services []string `yaml:"services,omitempty"` Sidecars []Sidecar `yaml:"sidecars,omitempty"` Command string `yaml:"command,omitempty"` }
type ApplicationReconciler ¶
type CLIClient ¶
type CLIClient struct { sync.Mutex Endpoint string Username string Password string TargetOrg string TargetSpace string }
func (*CLIClient) AddNetworkPolicy ¶
cf add-network-policy PUBLIC_APPNAME --destination-app PRIVATE_APPNAME --protocol tcp --port 8080
func (*CLIClient) Authenticate ¶
type Config ¶
type Config struct { Endpoint string Username string Password string Token string SSOPasscode string CFClientID string CFClientSecret string UaaClientID string UaaClientSecret string SkipSslValidation bool OrgName string SpaceName string }
Config -
type DockerConfig ¶
type DockerConfig struct {
Image string `yaml:"image"`
}
type Manifest ¶
type Manifest struct { Applications []Application `json:"applications"` Services []string `json:"services,omitempty"` }
type RetryRequest ¶
type RetryRequest struct {
// contains filtered or unexported fields
}
RetryRequest is a wrapper that retries failed requests if they contain a 5XX status code. copy of wrapper retry request in cli but remove the necessary of have a readseeker body (annoying for sending in fullstream)
func NewRetryRequest ¶
func NewRetryRequest(maxRetries int) *RetryRequest
NewRetryRequest returns a pointer to a RetryRequest wrapper.
func (*RetryRequest) Make ¶
func (retry *RetryRequest) Make(request *cloudcontroller.Request, passedResponse *cloudcontroller.Response) error
Make retries the request if it comes back with a 5XX status code.
func (*RetryRequest) Wrap ¶
func (retry *RetryRequest) Wrap(innerconnection cloudcontroller.Connection) cloudcontroller.Connection
Wrap sets the connection in the RetryRequest and returns itself.
type ServiceReconciler ¶
type Session ¶
type Session struct { ClientV3 *ccv3.Client ConfigV3 *configv3.Config ClientV2 *ccv2.Client ClientUAA *uaa.Client ClientRouting *router.Client CLIClient *CLIClient ApiEndpoint string }
Session - wraps the available clients from CF cli
func (*Session) AccessToken ¶
func (*Session) BinaryName ¶
func (*Session) CurrentUserName ¶
func (*Session) HasTargetedOrganization ¶
func (*Session) HasTargetedSpace ¶
func (*Session) RefreshToken ¶
func (*Session) TargetedOrganization ¶
func (s *Session) TargetedOrganization() configv3.Organization
func (*Session) TargetedOrganizationName ¶
func (*Session) TargetedSpace ¶
Click to show internal directories.
Click to hide internal directories.