cfclientext

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 8 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 {
	cfclient.Client
}

func NewClient

func NewClient(config *cfclient.Config) (*Client, error)

func (*Client) CreateV3ServiceBinding

func (c *Client) CreateV3ServiceBinding(r CreateV3ServiceBindingRequest) (*V3JobHandle, error)

func (*Client) CreateV3ServiceInstance

func (c *Client) CreateV3ServiceInstance(r CreateV3ServiceInstanceRequest) (*V3JobHandle, error)

func (*Client) DeleteV3ServiceBinding

func (c *Client) DeleteV3ServiceBinding(serviceBindingGUID string) (*V3JobHandle, error)

func (*Client) DeleteV3ServiceInstance

func (c *Client) DeleteV3ServiceInstance(serviceInstanceGUID string) (*V3JobHandle, error)

func (*Client) GetV3ServiceBindingByGUID

func (c *Client) GetV3ServiceBindingByGUID(serviceBindingGUID string) (*V3ServiceBinding, error)

func (*Client) GetV3ServiceBindingDetails

func (c *Client) GetV3ServiceBindingDetails(serviceBindingGUID string) (*V3ServiceBindingDetails, error)

func (*Client) GetV3ServiceInstanceByGUID

func (c *Client) GetV3ServiceInstanceByGUID(serviceInstanceGUID string) (*V3ServiceInstance, error)

func (*Client) GetV3ServiceOfferingByGUID

func (c *Client) GetV3ServiceOfferingByGUID(serviceOfferingGUID string) (*V3ServiceOffering, error)

func (*Client) GetV3ServicePlanByGUID

func (c *Client) GetV3ServicePlanByGUID(servicePlanGUID string) (*V3ServicePlan, error)

func (*Client) ListV3ServiceBindingsByQuery

func (c *Client) ListV3ServiceBindingsByQuery(query url.Values) ([]V3ServiceBinding, error)

func (*Client) ListV3ServiceInstancesByQuery

func (c *Client) ListV3ServiceInstancesByQuery(query url.Values) ([]V3ServiceInstance, error)

func (*Client) ListV3ServiceOfferingsByQuery

func (c *Client) ListV3ServiceOfferingsByQuery(query url.Values) ([]V3ServiceOffering, error)

func (*Client) ListV3ServicePlansByQuery

func (c *Client) ListV3ServicePlansByQuery(query url.Values) ([]V3ServicePlan, error)

func (*Client) UpdateV3ServiceBinding

func (c *Client) UpdateV3ServiceBinding(serviceBindingGUID string, r UpdateV3ServiceBindingRequest) (*V3JobHandle, error)

func (*Client) UpdateV3ServiceInstance

func (c *Client) UpdateV3ServiceInstance(serviceInstanceGUID string, r UpdateV3ServiceInstanceRequest) (*V3JobHandle, error)

type CloudFoundryLinkV3

type CloudFoundryLinkV3 struct {
	Href   string `json:"href"`
	Method string `json:"method,omitempty"`
}

type CloudFoundryWarningV3

type CloudFoundryWarningV3 struct {
	Detail string `json:"detail"`
}

type CreateV3ServiceBindingRequest

type CreateV3ServiceBindingRequest struct {
	Name                string
	ServiceInstanceGUID string
	Parameters          map[string]interface{}
	Metadata            *cfclient.V3Metadata
}

type CreateV3ServiceInstanceRequest

type CreateV3ServiceInstanceRequest struct {
	Name            string
	SpaceGUID       string
	ServicePlanGUID string
	Parameters      map[string]interface{}
	Tags            []string
	Metadata        *cfclient.V3Metadata
}

type MaintenanceInfoV3

type MaintenanceInfoV3 struct {
	Version     string `json:"version,omitempty"`
	Description string `json:"description,omitempty"`
}

type UpdateV3ServiceBindingRequest

type UpdateV3ServiceBindingRequest struct {
	Metadata *cfclient.V3Metadata
}

type UpdateV3ServiceInstanceRequest

type UpdateV3ServiceInstanceRequest struct {
	Name            string
	ServicePlanGUID string
	Parameters      map[string]interface{}
	Tags            []string
	Metadata        *cfclient.V3Metadata
}

type V3Job

type V3Job struct {
	GUID      string                         `json:"guid"`
	CreatedAt string                         `json:"created_at"`
	UpdatedAt string                         `json:"updated_at"`
	Operation string                         `json:"operation"`
	State     string                         `json:"state"`
	Errors    []cfclient.CloudFoundryErrorV3 `json:"errors,omitempty"`
	Warnings  []CloudFoundryWarningV3        `json:"warnings,omitempty"`
	Links     map[string]CloudFoundryLinkV3  `json:"links,omitempty"`
}

type V3JobHandle

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

func (*V3JobHandle) Refresh

func (h *V3JobHandle) Refresh() (*V3Job, error)

type V3LastOperation

type V3LastOperation struct {
	Type        string `json:"type"`
	State       string `json:"state"`
	Description string `json:"description,omitempty"`
	UpdatedAt   string `json:"updated_at"`
	CreatedAt   string `json:"created_at"`
}

type V3ServiceBinding

type V3ServiceBinding struct {
	GUID          string                                  `json:"guid"`
	CreatedAt     string                                  `json:"created_at"`
	UpdatedAt     string                                  `json:"updated_at"`
	Name          string                                  `json:"name"`
	LastOperation V3LastOperation                         `json:"last_operation"`
	RelationShips map[string]cfclient.V3ToOneRelationship `json:"relationships,omitempty"`
	Metadata      cfclient.V3Metadata                     `json:"metadata,omitempty"`
	Links         map[string]CloudFoundryLinkV3           `json:"links,omitempty"`
}

type V3ServiceBindingDetails

type V3ServiceBindingDetails struct {
	Credentials    map[string]interface{} `json:"credentials,omitempty"`
	SyslogDrainUrl string                 `json:"syslog_drain_url,omitempty"`
	VolumeMounts   []string               `json:"volume_mounts,omitempty"`
}

type V3ServiceInstance

type V3ServiceInstance struct {
	GUID            string                                  `json:"guid"`
	CreatedAt       string                                  `json:"created_at"`
	UpdatedAt       string                                  `json:"updated_at"`
	Name            string                                  `json:"name"`
	Tags            []string                                `json:"tags,omitempty"`
	MaintenanceInfo MaintenanceInfoV3                       `json:"maintenance_info,omitempty"`
	DashboardUrl    string                                  `json:"dashboard_url,omitempty"`
	LastOperation   V3LastOperation                         `json:"last_operation"`
	RelationShips   map[string]cfclient.V3ToOneRelationship `json:"relationships,omitempty"`
	Metadata        cfclient.V3Metadata                     `json:"metadata,omitempty"`
	Links           map[string]CloudFoundryLinkV3           `json:"links,omitempty"`
}

type V3ServiceOffering

type V3ServiceOffering struct {
	GUID             string                                  `json:"guid"`
	CreatedAt        string                                  `json:"created_at"`
	UpdatedAt        string                                  `json:"updated_at"`
	Name             string                                  `json:"name"`
	Description      string                                  `json:"description,omitempty"`
	Available        bool                                    `json:"available"`
	Tags             []string                                `json:"tags,omitempty"`
	Requires         []string                                `json:"requires,omitempty"`
	Shareable        bool                                    `json:"shareable"`
	DocumentationUrl string                                  `json:"documentation_url,omitempty"`
	BrokerCatalog    V3ServiceOfferingBrokerCatalog          `json:"broker_catalog,omitempty"`
	RelationShips    map[string]cfclient.V3ToOneRelationship `json:"relationships,omitempty"`
	Metadata         cfclient.V3Metadata                     `json:"metadata,omitempty"`
	Links            map[string]CloudFoundryLinkV3           `json:"links,omitempty"`
}

type V3ServiceOfferingBrokerCatalog

type V3ServiceOfferingBrokerCatalog struct {
	Id       string                                 `json:"id"`
	Metadata map[string]interface{}                 `json:"metadata,omitempty"`
	Feature  V3ServiceOfferingBrokerCatalogFeatures `json:"features,omitempty"`
}

type V3ServiceOfferingBrokerCatalogFeatures

type V3ServiceOfferingBrokerCatalogFeatures struct {
	PlanUpdateable       bool `json:"plan_updateable"`
	Bindable             bool `json:"bindable"`
	InstancesRetrievable bool `json:"instances_retrievable"`
	BindingsRetrievable  bool `json:"bindings_retrievable"`
	AllowContextUpdates  bool `json:"allow_context_updates"`
}

type V3ServicePlan

type V3ServicePlan struct {
	GUID            string                                  `json:"guid"`
	CreatedAt       string                                  `json:"created_at"`
	UpdatedAt       string                                  `json:"updated_at"`
	Name            string                                  `json:"name"`
	VisibilityType  string                                  `json:"visibility_type"`
	Available       bool                                    `json:"available"`
	Free            bool                                    `json:"free"`
	Costs           []V3ServicePlanCost                     `json:"costs,omitempty"`
	Description     string                                  `json:"description,omitempty"`
	MaintenanceInfo MaintenanceInfoV3                       `json:"maintenance_info,omitempty"`
	BrokerCatalog   V3ServicePlanBrokerCatalog              `json:"broker_catalog,omitempty"`
	RelationShips   map[string]cfclient.V3ToOneRelationship `json:"relationships,omitempty"`
	Metadata        cfclient.V3Metadata                     `json:"metadata,omitempty"`
	Links           map[string]CloudFoundryLinkV3           `json:"links,omitempty"`
}

type V3ServicePlanBrokerCatalog

type V3ServicePlanBrokerCatalog struct {
	Id                     string                             `json:"id"`
	Metadata               map[string]interface{}             `json:"metadata,omitempty"`
	MaximumPollingDuration int64                              `json:"maximum_polling_duration"`
	Feature                V3ServicePlanBrokerCatalogFeatures `json:"features,omitempty"`
}

type V3ServicePlanBrokerCatalogFeatures

type V3ServicePlanBrokerCatalogFeatures struct {
	PlanUpdateable bool `json:"plan_updateable"`
	Bindable       bool `json:"bindable"`
}

type V3ServicePlanCost

type V3ServicePlanCost struct {
	Amount   float64 `json:"amount"`
	Currency string  `json:"currency"`
	Unit     string  `json:"unit"`
}

Jump to

Keyboard shortcuts

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