resources

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaginatedServiceInstanceResources

type PaginatedServiceInstanceResources struct {
	TotalResults int    `json:"total_results"`
	NextUrl      string `json:"next_url"`
	Resources    []ServiceInstanceResource
}

func (*PaginatedServiceInstanceResources) ToModel

type PaginatedServiceKeyResources

type PaginatedServiceKeyResources struct {
	TotalResults int    `json:"total_results"`
	NextUrl      string `json:"next_url"`
	Resources    []ServiceKeyResource
}

func (*PaginatedServiceKeyResources) ToModel

func (self *PaginatedServiceKeyResources) ToModel() ([]models.ServiceKey, error)

type PsqlCredentials

type PsqlCredentials struct {
	Uri      string `json:"uri"`
	DbName   string `json:"name"`
	Hostname string `json:"hostname"`
	Port     string
	RawPort  json.RawMessage `json:"port"`
	Username string          `json:"username"`
	Password string          `json:"password"`
}

type ServiceBindingEntity

type ServiceBindingEntity struct {
	AppGUID             string          `json:"app_guid"`
	ServiceInstanceGUID string          `json:"service_instance_guid"`
	Credentials         PsqlCredentials `json:"credentials"`
}

type ServiceBindingResource

type ServiceBindingResource struct {
	resources.Resource
	Entity ServiceBindingEntity
}

type ServiceInstanceEntity

type ServiceInstanceEntity struct {
	Name            string                         `json:"name"`
	DashboardURL    string                         `json:"dashboard_url"`
	Tags            []string                       `json:"tags"`
	ServiceBindings []ServiceBindingResource       `json:"service_bindings"`
	ServiceKeys     []resources.ServiceKeyResource `json:"service_keys"`
	ServicePlan     resources.ServicePlanResource  `json:"service_plan"`
	LastOperation   resources.LastOperation        `json:"last_operation"`
	SpaceUrl        string                         `json:"space_url"`
}

type ServiceInstanceResource

type ServiceInstanceResource struct {
	resources.Resource
	Entity ServiceInstanceEntity
}

type ServiceKeyEntity

type ServiceKeyEntity struct {
	ServiceInstanceName string `json:"name"`
	ServiceInstanceGuid string `json:"service_instance_guid"`
	Credentials         PsqlCredentials
}

type ServiceKeyResource

type ServiceKeyResource struct {
	resources.Resource
	Entity ServiceKeyEntity
}

func (*ServiceKeyResource) ToModel

func (self *ServiceKeyResource) ToModel() (models.ServiceKey, error)

Jump to

Keyboard shortcuts

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