paramparser

package
v2.5.21 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package paramparser handles the parsing of parameters from brokerapi

Index

Constants

This section is empty.

Variables

View Source
var ErrNoAppGUIDOrCredentialClient = apiresponses.NewFailureResponse(
	errors.New("no app GUID or credential client ID were provided in the binding request"),
	http.StatusUnprocessableEntity,
	"no-app-guid-or-credential-client-id",
)

Functions

This section is empty.

Types

type BindDetails

type BindDetails struct {
	AppGUID            string
	CredentialClientID string
	PlanID             string
	ServiceID          string
	CredHubActor       string
	RequestParams      map[string]any
	RequestContext     map[string]any
}

func ParseBindDetails

func ParseBindDetails(input domain.BindDetails) (BindDetails, error)

type ProvisionDetails

type ProvisionDetails struct {
	ServiceID        string
	PlanID           string
	OrganizationGUID string
	SpaceGUID        string
	RequestParams    map[string]any
	RequestContext   map[string]any
}

func ParseProvisionDetails

func ParseProvisionDetails(input domain.ProvisionDetails) (ProvisionDetails, error)

type UpdateDetails

type UpdateDetails struct {
	ServiceID                      string
	PlanID                         string
	MaintenanceInfoVersion         *version.Version
	PreviousPlanID                 string
	PreviousServiceID              string
	PreviousOrgID                  string
	PreviousSpaceID                string
	PreviousMaintenanceInfoVersion *version.Version
	RequestParams                  map[string]any
	RequestContext                 map[string]any
}

func ParseUpdateDetails

func ParseUpdateDetails(input domain.UpdateDetails) (UpdateDetails, error)

Jump to

Keyboard shortcuts

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