service

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 7 Imported by: 3 modules, 24 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateService

func CreateService(client *occlient.Client, serviceName string, serviceType string, applicationName string) error

CreateService creates new service from serviceCatalog

func DeleteService

func DeleteService(client *occlient.Client, name string, applicationName string, projectName string) error

DeleteService will delete the service with the provided `name`

func ListCatalog

func ListCatalog(client *occlient.Client) ([]string, error)

ListCatalog lists all the available service types

func Search(client *occlient.Client, name string) ([]string, error)

Search searches for the services

func SvcExists

func SvcExists(client *occlient.Client, serviceName, applicationName, projectName string) (bool, error)

SvcExists Checks whether a service with the given name exists in the current application or not serviceName is the service name to perform check for The first returned parameter is a bool indicating if a service with the given name already exists or not The second returned parameter is the error that might occurs while execution

func SvcTypeExists

func SvcTypeExists(client *occlient.Client, serviceType string) (bool, error)

SvcTypeExists returns true if the given service type is valid, false if not

Types

type ServiceInfo

type ServiceInfo struct {
	Name   string
	Type   string
	Status string
}

ServiceInfo holds all important information about one service

func List

func List(client *occlient.Client, applicationName string, projectName string) ([]ServiceInfo, error)

List lists all the deployed services

Jump to

Keyboard shortcuts

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