cloudcfg

package
v0.0.0-...-a541f19 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package cloudcfg is ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteController

func DeleteController(name string, client client.ClientInterface) error

DeleteController deletes a replication controller named 'name', requires that the controller already be stopped

func DoRequest

func DoRequest(request *http.Request, user, password string) (string, error)

Execute a request, adds authentication, and HTTPS cert ignoring. TODO: Make this stuff optional FIXME: need to be public API?

func LoadAuthInfo

func LoadAuthInfo(path string) (client.AuthInfo, error)

Parse an AuthInfo object from a file path

func RequestWithBody

func RequestWithBody(configFile, url, method string) (*http.Request, error)

RequestWithBody is a helper method that creates an HTTP request with the specified url, method and a body read from 'configFile' FIXME: need to be public API?

func RequestWithBodyData

func RequestWithBodyData(data []byte, url, method string) (*http.Request, error)

RequestWithBodyData is a helper method that creates an HTTP request with the specified url, method and body data FIXME: need to be public API?

func RunController

func RunController(image, name string, replicas int, client client.ClientInterface, portSpec string, servicePort int) error

RunController creates a new replication controller named 'name' which creates 'replicas' tasks running 'image'

func StopController

func StopController(name string, client client.ClientInterface) error

StopController stops a controller named 'name' by setting replicas to zero

func Update

func Update(name string, client client.ClientInterface, updatePeriod time.Duration) error

Perform a rolling update of a collection of tasks. 'name' points to a replication controller. 'client' is used for updating tasks. 'updatePeriod' is the time between task updates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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