controllerv2

package
v0.0.0-...-37a14a6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ErrCodeAPICreation = "APICreationError"

ErrCodeAPICreation ...

View Source
const ErrCodeResourceServiceInstanceDoesnotExist = "ResourceServiceInstanceDoesnotExist"

ErrCodeResourceServiceInstanceDoesnotExist ...

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateServiceInstanceRequest

type CreateServiceInstanceRequest struct {
	Name            string                 `json:"name"`
	ServicePlanID   string                 `json:"resource_plan_id"`
	ResourceGroupID string                 `json:"resource_group_id"`
	Crn             string                 `json:"crn,omitempty"`
	Tags            []string               `json:"tags,omitempty"`
	Parameters      map[string]interface{} `json:"parameters,omitempty"`
	TargetCrn       string                 `json:"target_crn"`
}

type GenericPaginatedResourcesHandler

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

func NewRCPaginatedResources

func NewRCPaginatedResources(resource interface{}) GenericPaginatedResourcesHandler

func (GenericPaginatedResourcesHandler) Resources

func (pr GenericPaginatedResourcesHandler) Resources(bytes []byte, curURL string) ([]interface{}, string, error)

type ResourceControllerAPIV2

type ResourceControllerAPIV2 interface {
	ResourceServiceInstanceV2() ResourceServiceInstanceRepository
}

ResourceControllerAPIV2 is the resource client ...

func New

New ...

type ResourceServiceInstanceRepository

type ResourceServiceInstanceRepository interface {
	ListInstances(query ServiceInstanceQuery) ([]models.ServiceInstanceV2, error)
	GetInstance(serviceInstanceID string) (models.ServiceInstanceV2, error)
}

ResourceServiceInstanceQuery ...

type ServiceInstanceQuery

type ServiceInstanceQuery struct {
	ResourceGroupID string
	ServiceID       string
	ServicePlanID   string
	Name            string
	Type            string
	SubType         string
	Limit           string
	UpdatedFrom     string
	UpdatedTo       string
	Guid            string
}

type UpdateServiceInstanceRequest

type UpdateServiceInstanceRequest struct {
	Name          string                 `json:"name,omitempty"`
	ServicePlanID string                 `json:"resource_plan_id,omitempty"`
	Tags          []string               `json:"tags,omitempty"`
	Parameters    map[string]interface{} `json:"parameters,omitempty"`
	UpdateTime    int64                  `json:"update_time,omitempty"`
}

Jump to

Keyboard shortcuts

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