servicebindings

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) List

List queries Kubernetes for service bindings.

type ClientInterface

type ClientInterface interface {
	// List queries Kubernetes for service bindings.
	List(opts ...ListOption) ([]servicecatalogv1beta1.ServiceBinding, error)
}

ClientInterface is a client capable of interacting with service catalog services and mapping the CF to Kubernetes concepts.

func NewClient

func NewClient(svcatClient servicecatalogclient.Interface) ClientInterface

NewClient creates a new client capable of interacting with service catalog services.

type ListOption

type ListOption func(*listConfig)

ListOption is a single option for configuring a listConfig

func WithListAppName

func WithListAppName(val string) ListOption

WithListAppName creates an Option that sets filter the results to bindings for the given app.

func WithListNamespace

func WithListNamespace(val string) ListOption

WithListNamespace creates an Option that sets the Kubernetes namespace to use.

func WithListServiceInstance

func WithListServiceInstance(val string) ListOption

WithListServiceInstance creates an Option that sets filter the results to bindings for the given service instance.

type ListOptions

type ListOptions []ListOption

ListOptions is a configuration set defining a listConfig

func ListOptionDefaults

func ListOptionDefaults() ListOptions

ListOptionDefaults gets the default values for List.

func (ListOptions) AppName

func (opts ListOptions) AppName() string

AppName returns the last set value for AppName or the empty value if not set.

func (ListOptions) Extend

func (opts ListOptions) Extend(other ListOptions) ListOptions

Extend creates a new ListOptions with the contents of other overriding the values set in this ListOptions.

func (ListOptions) Namespace

func (opts ListOptions) Namespace() string

Namespace returns the last set value for Namespace or the empty value if not set.

func (ListOptions) ServiceInstance

func (opts ListOptions) ServiceInstance() string

ServiceInstance returns the last set value for ServiceInstance or the empty value if not set.

Directories

Path Synopsis
Package fake is a generated GoMock package.
Package fake is a generated GoMock package.

Jump to

Keyboard shortcuts

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