client

package
v0.41.8 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Copyright 2023 Commonwealth Scientific and Industrial Research Organisation (CSIRO) ABN 41 687 119 230

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddArtifactMeta

func AddArtifactMeta(
	ctxt context.Context,
	artifactID string,
	schemaName string,
	meta io.Reader,
	size int64,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (adapter.Payload, error)

func AddArtifactToCollection

func AddArtifactToCollection(
	ctxt context.Context,
	artifactID string,
	collectionName string,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (adapter.Payload, error)

func AddProgressBar

func AddProgressBar(description string, size int64, reader io.Reader) io.Reader

func AddUpdateAspect

func AddUpdateAspect(ctxt context.Context, isAdd bool, entity string, schema string, policy string, meta []byte, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func BaseEncode

func BaseEncode(value string) string

func CreateArtifact

func CreateArtifact(
	ctxt context.Context,
	cmd *CreateArtifactRequest,
	contentType string,
	size int64,
	reader io.Reader,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (*api.UploadResponseBody, error)

func CreateArtifactRaw

func CreateArtifactRaw(
	ctxt context.Context,
	cmd *CreateArtifactRequest,
	contentType string,
	size int64,
	reader io.Reader,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (adapter.Payload, error)

func CreateOrder

func CreateOrder(ctxt context.Context, cmd *api.CreateRequestBody, adpt *adapter.Adapter, logger *log.Logger) (*api.CreateResponseBody, error)

func CreateOrderRaw

func CreateOrderRaw(ctxt context.Context, cmd *api.CreateRequestBody, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func CreateQueue added in v0.41.2

func CreateQueue(
	ctxt context.Context,
	cmd *api.CreateRequestBody,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (*api.CreateResponseBody, error)

*** CREATE ***

func CreateQueueRaw added in v0.41.2

func CreateQueueRaw(
	ctxt context.Context,
	cmd *api.CreateRequestBody,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (adapter.Payload, error)

func CreateServiceRaw

func CreateServiceRaw(ctxt context.Context, cmd *ServiceCreateRequestBody, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)
type CreateServiceRequest struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

func DeleteQueueRaw added in v0.41.2

func DeleteQueueRaw(
	ctx context.Context,
	cmd *ReadQueueRequest,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (adapter.Payload, error)

*** DELETE ***

func Dequeue added in v0.41.2

func Dequeue(
	ctx context.Context,
	cmd *ReadQueueRequest,
	limit int,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (*api.DequeueResponseBody, error)

*** DEQUEUE ***

func DequeueRaw added in v0.41.2

func DequeueRaw(
	ctx context.Context,
	cmd *ReadQueueRequest,
	limit int,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (adapter.Payload, error)

func DownloadOrderLog

func DownloadOrderLog(ctxt context.Context, req *LogsRequestBody, adpt *adapter.Adapter, logger *log.Logger) error

func Enqueue added in v0.41.2

func Enqueue(
	ctx context.Context,
	cmd *ReadQueueRequest,
	schema string,
	message string,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (*api.EnqueueResponseBody, error)

*** ENQUEUE ***

func EnqueueRaw added in v0.41.2

func EnqueueRaw(
	ctx context.Context,
	cmd *ReadQueueRequest,
	schema string,
	message string,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (adapter.Payload, error)

func GetAspect

func GetAspect(
	ctxt context.Context,
	recordID string,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (*api.ReadResponseBody, error)

func GetAspectRaw added in v0.35.0

func GetAspectRaw(ctxt context.Context, recordID string, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func GetJobEvents added in v0.41.8

func GetJobEvents(ctxt context.Context, serviceId string, jobId string, lastEventID *string, onEvent func(*sse.Event), adpt *adapter.Adapter, logger *log.Logger) error

func GetProgressBar

func GetProgressBar(description string, size int64) io.Writer

func GetSecret added in v0.41.4

func GetSecret(ctxt context.Context, host string, req *GetSecretRequest, adpt *adapter.Adapter, logger *log.Logger) (*api.GetResponseBody, error)

func GetSecretRaw added in v0.41.4

func GetSecretRaw(ctxt context.Context, host string, req *GetSecretRequest, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func ListArtifacts

func ListArtifacts(ctxt context.Context, cmd *ListRequest, adpt *adapter.Adapter, logger *log.Logger) (*api.ListResponseBody, error)

func ListArtifactsRaw

func ListArtifactsRaw(ctxt context.Context, cmd *ListRequest, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func ListAspect

func ListAspect(ctxt context.Context,
	selector AspectSelector,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (*api.ListResponseBody, adapter.Payload, error)

func ListOrders

func ListOrders(ctxt context.Context, cmd *ListRequest, adpt *adapter.Adapter, logger *log.Logger) (*api.ListResponseBody, error)

func ListOrdersRaw

func ListOrdersRaw(ctxt context.Context, cmd *ListRequest, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func ListPackages added in v0.40.5

func ListPackages(ctxt context.Context, tag string, adpt *adapter.Adapter, logger *log.Logger) (*api.ListResponseBody, error)

func ListQueues added in v0.41.2

func ListQueues(
	ctxt context.Context,
	cmd *ListRequest,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (*api.ListResponseBody, error)

*** LIST ***

func ListQueuesRaw added in v0.41.2

func ListQueuesRaw(
	ctxt context.Context,
	cmd *ListRequest,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (adapter.Payload, error)

func ListSecrets added in v0.41.4

func ListSecrets(ctxt context.Context, host string, req *ListSecretsRequest, adpt *adapter.Adapter, logger *log.Logger) (*api.ListResponseBody, error)

func ListSecretsRaw added in v0.41.4

func ListSecretsRaw(ctxt context.Context, host string, req *ListSecretsRequest, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func ListServicesRaw

func ListServicesRaw(ctxt context.Context, cmd *ListRequest, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func PullPackage added in v0.40.5

func PullPackage(ctxt context.Context, tag string, adpt *adapter.Adapter, logger *log.Logger) error

func PushServicePackage added in v0.40.5

func PushServicePackage(srcTagName string, forcePush, localImage bool, adpt *adapter.Adapter, logger *log.Logger) (*api.PushResponseBody, error)

func ReadArtifact

func ReadArtifact(ctxt context.Context, cmd *ReadArtifactRequest, adpt *adapter.Adapter, logger *log.Logger) (*api.ReadResponseBody, error)

func ReadArtifactRaw

func ReadArtifactRaw(ctxt context.Context, cmd *ReadArtifactRequest, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func ReadOrder

func ReadOrder(ctxt context.Context, cmd *ReadOrderRequest, adpt *adapter.Adapter, logger *log.Logger) (*api.ReadResponseBody, error)

func ReadOrderRaw

func ReadOrderRaw(ctxt context.Context, cmd *ReadOrderRequest, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func ReadQueue added in v0.41.2

func ReadQueue(
	ctxt context.Context,
	cmd *ReadQueueRequest,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (*api.ReadResponseBody, error)

func ReadQueueRaw added in v0.41.2

func ReadQueueRaw(
	ctxt context.Context,
	cmd *ReadQueueRequest,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (adapter.Payload, error)

func ReadServiceJobRaw added in v0.41.8

func ReadServiceJobRaw(ctxt context.Context, cmd *ReadServiceJobRequest, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func ReadServiceRaw

func ReadServiceRaw(ctxt context.Context, cmd *ReadServiceRequest, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func RemoveArtifactToCollection

func RemoveArtifactToCollection(
	ctxt context.Context,
	artifactID string,
	collectionName string,
	adpt *adapter.Adapter,
	logger *log.Logger,
) (adapter.Payload, error)

func RemovePackage added in v0.40.5

func RemovePackage(ctxt context.Context, tag string, adpt *adapter.Adapter, logger *log.Logger) error

func RetractAspect

func RetractAspect(ctxt context.Context, recordID string, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func SetSecret added in v0.41.4

func SetSecret(ctxt context.Context, host string, req *api.SetRequestBody, adpt *adapter.Adapter, logger *log.Logger) error

func TopOrder

func TopOrder(ctxt context.Context, orderID string, adpt *adapter.Adapter, logger *log.Logger) (*api.TopResponseBody, error)

func TopOrderRaw

func TopOrderRaw(ctxt context.Context, orderID string, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func UpdateServiceRaw

func UpdateServiceRaw(ctxt context.Context, id string, createAnyway bool, cmd *ServiceUpdateRequestBody, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, error)

func UploadArtifact

func UploadArtifact(
	ctxt context.Context,
	reader io.Reader,
	size int64,
	offset int64,
	chunkSize int64,
	path string,
	adpt *adapter.Adapter,
	silent bool,
	logger *log.Logger,
) (err error)

Types

type AspectSelector

type AspectSelector struct {
	ListRequest
	Entity         string
	SchemaPrefix   string
	JsonFilter     *string
	IncludeContent bool
}

type CreateArtifactRequest

type CreateArtifactRequest struct {
	Name       string            `json:"name"`
	Size       int64             `json:"size"`
	Collection string            `json:"collection"`
	Policy     string            `json:"policy"`
	Meta       map[string]string `json:"meta"`
}

type GetSecretRequest added in v0.41.4

type GetSecretRequest struct {
	SecretName string
	SecretType string
}

type JobCreateBadRequestResponseBody added in v0.41.8

type JobCreateBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobCreateBadRequestResponseBody is the type of the "service" service "job-create" endpoint HTTP response body for the "bad-request" error.

type JobCreateInvalidParameterResponseBody added in v0.41.8

type JobCreateInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

JobCreateInvalidParameterResponseBody is the type of the "service" service "job-create" endpoint HTTP response body for the "invalid-parameter" error.

type JobCreateInvalidScopesResponseBody added in v0.41.8

type JobCreateInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobCreateInvalidScopesResponseBody is the type of the "service" service "job-create" endpoint HTTP response body for the "invalid-scopes" error.

type JobCreateNotFoundResponseBody added in v0.41.8

type JobCreateNotFoundResponseBody struct {
	// ID of missing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobCreateNotFoundResponseBody is the type of the "service" service "job-create" endpoint HTTP response body for the "not-found" error.

type JobCreateNotImplementedResponseBody added in v0.41.8

type JobCreateNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobCreateNotImplementedResponseBody is the type of the "service" service "job-create" endpoint HTTP response body for the "not-implemented" error.

type JobCreateNotReadyYetResponseBody added in v0.41.8

type JobCreateNotReadyYetResponseBody struct {
	// the ID of the job
	JobID *string `form:"job-id,omitempty" json:"job-id,omitempty" xml:"job-id,omitempty"`
	// the URL for the job
	Location *string `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"`
	// The time in seconds after which an update may be available
	RetryLater *int `form:"retry-later,omitempty" json:"retry-later,omitempty" xml:"retry-later,omitempty"`
}

JobCreateNotReadyYetResponseBody is the type of the "service" service "job-create" endpoint HTTP response body for the "not-ready-yet" error.

type JobCreateT added in v0.41.8

type JobCreateT struct {
	JobID      string  `json:"job-id"`
	ServiceID  string  `json:"service-id,omitempty"`
	RetryLater float64 `json:"retry-later"`
}

func CreateServiceJobRaw added in v0.41.8

func CreateServiceJobRaw(ctxt context.Context, serviceId string, pyld adapter.Payload, timeout int, adpt *adapter.Adapter, logger *log.Logger) (adapter.Payload, *JobCreateT, error)

type JobEventsBadRequestResponseBody added in v0.41.8

type JobEventsBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobEventsBadRequestResponseBody is the type of the "service" service "job-events" endpoint HTTP response body for the "bad-request" error.

type JobEventsEventTimeoutResponseBody added in v0.41.8

type JobEventsEventTimeoutResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

JobEventsEventTimeoutResponseBody is the type of the "service" service "job-events" endpoint HTTP response body for the "event-timeout" error.

type JobEventsInvalidParameterResponseBody added in v0.41.8

type JobEventsInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

JobEventsInvalidParameterResponseBody is the type of the "service" service "job-events" endpoint HTTP response body for the "invalid-parameter" error.

type JobEventsInvalidScopesResponseBody added in v0.41.8

type JobEventsInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobEventsInvalidScopesResponseBody is the type of the "service" service "job-events" endpoint HTTP response body for the "invalid-scopes" error.

type JobEventsJobInternalErrorResponseBody added in v0.41.8

type JobEventsJobInternalErrorResponseBody struct {
	// more infomration about the error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobEventsJobInternalErrorResponseBody is the type of the "service" service "job-events" endpoint HTTP response body for the "job-internal-error" error.

type JobEventsJobRequestErrorResponseBody added in v0.41.8

type JobEventsJobRequestErrorResponseBody struct {
	// more infomration about the error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobEventsJobRequestErrorResponseBody is the type of the "service" service "job-events" endpoint HTTP response body for the "job-request-error" error.

type JobEventsNotFoundResponseBody added in v0.41.8

type JobEventsNotFoundResponseBody struct {
	// ID of missing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobEventsNotFoundResponseBody is the type of the "service" service "job-events" endpoint HTTP response body for the "not-found" error.

type JobEventsNotImplementedResponseBody added in v0.41.8

type JobEventsNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobEventsNotImplementedResponseBody is the type of the "service" service "job-events" endpoint HTTP response body for the "not-implemented" error.

type JobEventsResponseBody added in v0.41.8

type JobEventsResponseBody struct {
	// Stream sequence ID. Used in Last-Event-Id
	SeqID *string `form:"SeqID,omitempty" json:"SeqID,omitempty" xml:"SeqID,omitempty"`
	// Event ID
	EventID *string `form:"eventID,omitempty" json:"eventID,omitempty" xml:"eventID,omitempty"`
	// Event type, usually a simpler verions of 'schema'
	Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	// Schema of 'data'
	Schema *string `form:"schema,omitempty" json:"schema,omitempty" xml:"schema,omitempty"`
	// Event source
	Source *string `form:"source,omitempty" json:"source,omitempty" xml:"source,omitempty"`
	// timestamp in ISO802
	Timestamp *string `form:"timestamp,omitempty" json:"timestamp,omitempty" xml:"timestamp,omitempty"`
	// Content of event
	Data any `form:"data,omitempty" json:"data,omitempty" xml:"data,omitempty"`
}

JobEventsResponseBody is the type of the "service" service "job-events" endpoint HTTP response body.

type JobListBadRequestResponseBody added in v0.41.8

type JobListBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobListBadRequestResponseBody is the type of the "service" service "job-list" endpoint HTTP response body for the "bad-request" error.

type JobListInvalidParameterResponseBody added in v0.41.8

type JobListInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

JobListInvalidParameterResponseBody is the type of the "service" service "job-list" endpoint HTTP response body for the "invalid-parameter" error.

type JobListInvalidScopesResponseBody added in v0.41.8

type JobListInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobListInvalidScopesResponseBody is the type of the "service" service "job-list" endpoint HTTP response body for the "invalid-scopes" error.

type JobListItemResponseBody added in v0.41.8

type JobListItemResponseBody struct {
	// ID
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Optional customer provided name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Job status
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// DateTime job processing started
	StartedAt *string `form:"started-at,omitempty" json:"started-at,omitempty" xml:"started-at,omitempty"`
	// DateTime job processing finished
	FinishedAt *string `form:"finished-at,omitempty" json:"finished-at,omitempty" xml:"finished-at,omitempty"`
	// Reference to service requested
	Service *string `form:"service,omitempty" json:"service,omitempty" xml:"service,omitempty"`
	// Reference to order
	Order *string `form:"order,omitempty" json:"order,omitempty" xml:"order,omitempty"`
	Href  *string `json:"href,omitempty"`
}

JobListItemResponseBody is used to define fields on response body types.

type JobListNotImplementedResponseBody added in v0.41.8

type JobListNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobListNotImplementedResponseBody is the type of the "service" service "job-list" endpoint HTTP response body for the "not-implemented" error.

type JobListResponseBody added in v0.41.8

type JobListResponseBody struct {
	// Jobs
	Items []*JobListItemResponseBody `form:"items,omitempty" json:"items,omitempty" xml:"items,omitempty"`
	// Time at which this list was valid
	AtTime *string              `form:"at-time,omitempty" json:"at-time,omitempty" xml:"at-time,omitempty"`
	Links  []*LinkTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
}

JobListResponseBody is the type of the "service" service "job-list" endpoint HTTP response body.

type JobOutputBadRequestResponseBody added in v0.41.8

type JobOutputBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobOutputBadRequestResponseBody is the type of the "service" service "job-output" endpoint HTTP response body for the "bad-request" error.

type JobOutputInvalidParameterResponseBody added in v0.41.8

type JobOutputInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

JobOutputInvalidParameterResponseBody is the type of the "service" service "job-output" endpoint HTTP response body for the "invalid-parameter" error.

type JobOutputInvalidScopesResponseBody added in v0.41.8

type JobOutputInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobOutputInvalidScopesResponseBody is the type of the "service" service "job-output" endpoint HTTP response body for the "invalid-scopes" error.

type JobOutputJobInternalErrorResponseBody added in v0.41.8

type JobOutputJobInternalErrorResponseBody struct {
	// more infomration about the error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobOutputJobInternalErrorResponseBody is the type of the "service" service "job-output" endpoint HTTP response body for the "job-internal-error" error.

type JobOutputJobRequestErrorResponseBody added in v0.41.8

type JobOutputJobRequestErrorResponseBody struct {
	// more infomration about the error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobOutputJobRequestErrorResponseBody is the type of the "service" service "job-output" endpoint HTTP response body for the "job-request-error" error.

type JobOutputNotFoundResponseBody added in v0.41.8

type JobOutputNotFoundResponseBody struct {
	// ID of missing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobOutputNotFoundResponseBody is the type of the "service" service "job-output" endpoint HTTP response body for the "not-found" error.

type JobOutputNotImplementedResponseBody added in v0.41.8

type JobOutputNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobOutputNotImplementedResponseBody is the type of the "service" service "job-output" endpoint HTTP response body for the "not-implemented" error.

type JobOutputNotReadyYetResponseBody added in v0.41.8

type JobOutputNotReadyYetResponseBody struct {
	// the ID of the job
	JobID *string `form:"job-id,omitempty" json:"job-id,omitempty" xml:"job-id,omitempty"`
	// The time in seconds after which an update may be available
	RetryLater *int `form:"retry-later,omitempty" json:"retry-later,omitempty" xml:"retry-later,omitempty"`
}

JobOutputNotReadyYetResponseBody is the type of the "service" service "job-output" endpoint HTTP response body for the "not-ready-yet" error.

type JobReadBadRequestResponseBody added in v0.41.8

type JobReadBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobReadBadRequestResponseBody is the type of the "service" service "job-read" endpoint HTTP response body for the "bad-request" error.

type JobReadInvalidScopesResponseBody added in v0.41.8

type JobReadInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobReadInvalidScopesResponseBody is the type of the "service" service "job-read" endpoint HTTP response body for the "invalid-scopes" error.

type JobReadNotFoundResponseBody added in v0.41.8

type JobReadNotFoundResponseBody struct {
	// ID of missing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobReadNotFoundResponseBody is the type of the "service" service "job-read" endpoint HTTP response body for the "not-found" error.

type JobReadNotImplementedResponseBody added in v0.41.8

type JobReadNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

JobReadNotImplementedResponseBody is the type of the "service" service "job-read" endpoint HTTP response body for the "not-implemented" error.

type JobReadResponseBody added in v0.41.8

type JobReadResponseBody struct {
	// ID
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Job status
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// Optional customer provided name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Optional customer provided tags
	Tags []string `form:"tags,omitempty" json:"tags,omitempty" xml:"tags,omitempty"`
	// Reference to order
	Order *string `form:"order,omitempty" json:"order,omitempty" xml:"order,omitempty"`
	// Reference to service requested
	Service *string `form:"service,omitempty" json:"service,omitempty" xml:"service,omitempty"`
	// Mime type of request
	RequestContentType *string `form:"request-content-type,omitempty" json:"request-content-type,omitempty" xml:"request-content-type,omitempty"`
	// Request content
	RequestContent any `form:"request-content,omitempty" json:"request-content,omitempty" xml:"request-content,omitempty"`
	// Mime type of result
	ResultContentType *string `form:"result-content-type,omitempty" json:"result-content-type,omitempty" xml:"result-content-type,omitempty"`
	// Result content
	ResultContent any `form:"result-content,omitempty" json:"result-content,omitempty" xml:"result-content,omitempty"`
	// Result content URN
	ResultContentUrn *string                           `form:"result-content-urn,omitempty" json:"result-content-urn,omitempty" xml:"result-content-urn,omitempty"`
	Products         *PartialProductList2TResponseBody `form:"products,omitempty" json:"products,omitempty" xml:"products,omitempty"`
	// Additional error message id status is 'Error' or 'Failed'
	ErrorMessage *string `form:"error-message,omitempty" json:"error-message,omitempty" xml:"error-message,omitempty"`
	// Reference to billable account
	Account *string `form:"account,omitempty" json:"account,omitempty" xml:"account,omitempty"`
	// Reference to policy used
	Policy *string `form:"policy,omitempty" json:"policy,omitempty" xml:"policy,omitempty"`
	// DateTime job was submitted
	RequestedAt *string `form:"requested-at,omitempty" json:"requested-at,omitempty" xml:"requested-at,omitempty"`
	// DateTime job processing started
	StartedAt *string `form:"started-at,omitempty" json:"started-at,omitempty" xml:"started-at,omitempty"`
	// DateTime job processing finished
	FinishedAt *string              `form:"finished-at,omitempty" json:"finished-at,omitempty" xml:"finished-at,omitempty"`
	Links      []*LinkTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
}

JobReadResponseBody is the type of the "service" service "job-read" endpoint HTTP response body.

func ReadServiceJob added in v0.41.8

func ReadServiceJob(ctxt context.Context, cmd *ReadServiceJobRequest, adpt *adapter.Adapter, logger *log.Logger) (*JobReadResponseBody, adapter.Payload, error)

type LinkTResponseBody added in v0.41.8

type LinkTResponseBody struct {
	// relation type
	Rel *string `form:"rel,omitempty" json:"rel,omitempty" xml:"rel,omitempty"`
	// mime type
	Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	// web link
	Href *string `form:"href,omitempty" json:"href,omitempty" xml:"href,omitempty"`
}

LinkTResponseBody is used to define fields on response body types.

type ListRequest added in v0.35.0

type ListRequest struct {
	Limit     int
	Page      *string
	Filter    *string
	OrderBy   *string
	OrderDesc bool
	AtTime    *time.Time
}

type ListSecretsRequest added in v0.41.4

type ListSecretsRequest struct {
	Page        string
	Limit       int
	OffsetToken string
	Filter      string
}

type ListServiceRequest

type ListServiceRequest struct {
	Offset    int
	Limit     int
	OrderBy   string
	OrderDesc bool
}

type LogsRequestBody

type LogsRequestBody struct {
	From    int64
	To      int64
	OrderID string
}

type ParameterDefT added in v0.41.8

type ParameterDefT struct {
	Name        string           `form:"name" json:"name" xml:"name"`
	Label       *string          `form:"label,omitempty" json:"label,omitempty" xml:"label,omitempty"`
	Type        string           `form:"type" json:"type" xml:"type"`
	Description string           `form:"description" json:"description" xml:"description"`
	Unit        *string          `form:"unit,omitempty" json:"unit,omitempty" xml:"unit,omitempty"`
	Constant    *bool            `form:"constant,omitempty" json:"constant,omitempty" xml:"constant,omitempty"`
	Optional    *bool            `form:"optional,omitempty" json:"optional,omitempty" xml:"optional,omitempty"`
	Default     *string          `form:"default,omitempty" json:"default,omitempty" xml:"default,omitempty"`
	Options     []*ParameterOptT `form:"options,omitempty" json:"options,omitempty" xml:"options,omitempty"`
	Unary       *bool            `form:"unary,omitempty" json:"unary,omitempty" xml:"unary,omitempty"`
}

ParameterDefT is used to define fields on request body types.

type ParameterDefTResponseBody added in v0.41.8

type ParameterDefTResponseBody struct {
	Name        *string                      `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	Label       *string                      `form:"label,omitempty" json:"label,omitempty" xml:"label,omitempty"`
	Type        *string                      `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	Description *string                      `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	Unit        *string                      `form:"unit,omitempty" json:"unit,omitempty" xml:"unit,omitempty"`
	Constant    *bool                        `form:"constant,omitempty" json:"constant,omitempty" xml:"constant,omitempty"`
	Optional    *bool                        `form:"optional,omitempty" json:"optional,omitempty" xml:"optional,omitempty"`
	Default     *string                      `form:"default,omitempty" json:"default,omitempty" xml:"default,omitempty"`
	Options     []*ParameterOptTResponseBody `form:"options,omitempty" json:"options,omitempty" xml:"options,omitempty"`
	Unary       *bool                        `form:"unary,omitempty" json:"unary,omitempty" xml:"unary,omitempty"`
}

ParameterDefTResponseBody is used to define fields on response body types.

type ParameterOptT added in v0.41.8

type ParameterOptT struct {
	Value       *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
	Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
}

ParameterOptT is used to define fields on request body types.

type ParameterOptTResponseBody added in v0.41.8

type ParameterOptTResponseBody struct {
	Value       *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
	Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
}

ParameterOptTResponseBody is used to define fields on response body types.

type PartialProductList2TResponseBody added in v0.41.8

type PartialProductList2TResponseBody struct {
	// (Partial) list of products delivered by this order
	Items []*ProductListItem2TResponseBody `form:"items,omitempty" json:"items,omitempty" xml:"items,omitempty"`
	// Links to more products, if there are any
	Links []*LinkTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
}

PartialProductList2TResponseBody is used to define fields on response body types.

type ProductListItem2TResponseBody added in v0.41.8

type ProductListItem2TResponseBody struct {
	ID       *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	Name     *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	Status   *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	MimeType *string `json:"mime-type,omitempty"`
	Size     *int64  `form:"size,omitempty" json:"size,omitempty" xml:"size,omitempty"`
	Href     *string `json:"href,omitempty"`
	DataHref *string `json:"dataRef,omitempty"`
}

ProductListItem2TResponseBody is used to define fields on response body types.

type PushStatus added in v0.40.5

type PushStatus string
const (
	PushStatusUnstarted  PushStatus = "unstarted"
	PushStatusInprogress PushStatus = "inprogress"
	PushStatusErrored    PushStatus = "errored"
	PushStatusDone       PushStatus = "done"
)

type ReadArtifactRequest

type ReadArtifactRequest struct {
	Id string
}

type ReadOrderRequest

type ReadOrderRequest struct {
	Id string
}

type ReadQueueRequest added in v0.41.2

type ReadQueueRequest struct {
	Id string
}

*** READ ***

type ReadServiceJobRequest added in v0.41.8

type ReadServiceJobRequest struct {
	ServiceId string
	JobId     string
}

type ReadServiceRequest

type ReadServiceRequest struct {
	Id string
}

type ServiceCreateAlreadyCreatedResponseBody added in v0.41.8

type ServiceCreateAlreadyCreatedResponseBody struct {
	// ID of already existing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceCreateAlreadyCreatedResponseBody is the type of the "service" service "service-create" endpoint HTTP response body for the "already-created" error.

type ServiceCreateBadRequestResponseBody added in v0.41.8

type ServiceCreateBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceCreateBadRequestResponseBody is the type of the "service" service "service-create" endpoint HTTP response body for the "bad-request" error.

type ServiceCreateInvalidParameterResponseBody added in v0.41.8

type ServiceCreateInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

ServiceCreateInvalidParameterResponseBody is the type of the "service" service "service-create" endpoint HTTP response body for the "invalid-parameter" error.

type ServiceCreateInvalidScopesResponseBody added in v0.41.8

type ServiceCreateInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceCreateInvalidScopesResponseBody is the type of the "service" service "service-create" endpoint HTTP response body for the "invalid-scopes" error.

type ServiceCreateNotFoundResponseBody added in v0.41.8

type ServiceCreateNotFoundResponseBody struct {
	// ID of missing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceCreateNotFoundResponseBody is the type of the "service" service "service-create" endpoint HTTP response body for the "not-found" error.

type ServiceCreateNotImplementedResponseBody added in v0.41.8

type ServiceCreateNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceCreateNotImplementedResponseBody is the type of the "service" service "service-create" endpoint HTTP response body for the "not-implemented" error.

type ServiceCreateRequestBody added in v0.41.8

type ServiceCreateRequestBody struct {
	// type of controller used for this service
	ControllerSchema string `form:"controller-schema" json:"controller-schema" xml:"controller-schema"`
	// controller definition
	Controller any `form:"controller" json:"controller" xml:"controller"`
	// Reference to policy used
	Policy string `form:"policy" json:"policy" xml:"policy"`
	// ID
	ID string `form:"id" json:"id" xml:"id"`
	// Optional provider provided name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// More detailed description of the service
	Description string `form:"description" json:"description" xml:"description"`
	// Optional tags defined for service to help in categorising them
	Tags []string `form:"tags,omitempty" json:"tags,omitempty" xml:"tags,omitempty"`
	// Service parameter definitions
	Parameters []*ParameterDefT `form:"parameters" json:"parameters" xml:"parameters"`
}

ServiceCreateRequestBody is the type of the "service" service "service-create" endpoint HTTP request body.

type ServiceCreateResponseBody added in v0.41.8

type ServiceCreateResponseBody struct {
	// Service status
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// type of controller used for this service
	ControllerSchema *string `form:"controller-schema,omitempty" json:"controller-schema,omitempty" xml:"controller-schema,omitempty"`
	// controller definition
	Controller any `form:"controller,omitempty" json:"controller,omitempty" xml:"controller,omitempty"`
	// Reference to billable account
	Account *string `form:"account,omitempty" json:"account,omitempty" xml:"account,omitempty"`
	// Reference to policy used
	Policy *string `form:"policy,omitempty" json:"policy,omitempty" xml:"policy,omitempty"`
	// time this service has been available from
	ValidFrom *string `form:"valid-from,omitempty" json:"valid-from,omitempty" xml:"valid-from,omitempty"`
	// time this service has been available to
	ValidTo *string              `form:"valid-to,omitempty" json:"valid-to,omitempty" xml:"valid-to,omitempty"`
	Links   []*LinkTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
	// ID
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Optional provider provided name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// More detailed description of the service
	Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	// Optional tags defined for service to help in categorising them
	Tags []string `form:"tags,omitempty" json:"tags,omitempty" xml:"tags,omitempty"`
	// Service parameter definitions
	Parameters []*ParameterDefTResponseBody `form:"parameters,omitempty" json:"parameters,omitempty" xml:"parameters,omitempty"`
}

ServiceCreateResponseBody is the type of the "service" service "service-create" endpoint HTTP response body.

type ServiceDeleteBadRequestResponseBody added in v0.41.8

type ServiceDeleteBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceDeleteBadRequestResponseBody is the type of the "service" service "service-delete" endpoint HTTP response body for the "bad-request" error.

type ServiceDeleteInvalidScopesResponseBody added in v0.41.8

type ServiceDeleteInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceDeleteInvalidScopesResponseBody is the type of the "service" service "service-delete" endpoint HTTP response body for the "invalid-scopes" error.

type ServiceDeleteNotImplementedResponseBody added in v0.41.8

type ServiceDeleteNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceDeleteNotImplementedResponseBody is the type of the "service" service "service-delete" endpoint HTTP response body for the "not-implemented" error.

type ServiceListBadRequestResponseBody added in v0.41.8

type ServiceListBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceListBadRequestResponseBody is the type of the "service" service "service-list" endpoint HTTP response body for the "bad-request" error.

type ServiceListInvalidParameterResponseBody added in v0.41.8

type ServiceListInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

ServiceListInvalidParameterResponseBody is the type of the "service" service "service-list" endpoint HTTP response body for the "invalid-parameter" error.

type ServiceListInvalidScopesResponseBody added in v0.41.8

type ServiceListInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceListInvalidScopesResponseBody is the type of the "service" service "service-list" endpoint HTTP response body for the "invalid-scopes" error.

type ServiceListItemTResponseBody added in v0.41.8

type ServiceListItemTResponseBody struct {
	// ID
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Optional customer provided name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Optional description of the service
	Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	// Optional tags defined for service to help in categorising them
	Tags []string `form:"tags,omitempty" json:"tags,omitempty" xml:"tags,omitempty"`
	// type of controller used for this service
	ControllerSchema *string `form:"controller-schema,omitempty" json:"controller-schema,omitempty" xml:"controller-schema,omitempty"`
	// time this service has been available from
	ValidFrom *string `form:"valid-from,omitempty" json:"valid-from,omitempty" xml:"valid-from,omitempty"`
	// time this service has been available to
	ValidTo *string `form:"valid-to,omitempty" json:"valid-to,omitempty" xml:"valid-to,omitempty"`
	Href    *string `json:"href,omitempty"`
}

ServiceListItemTResponseBody is used to define fields on response body types.

type ServiceListNotImplementedResponseBody added in v0.41.8

type ServiceListNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceListNotImplementedResponseBody is the type of the "service" service "service-list" endpoint HTTP response body for the "not-implemented" error.

type ServiceListResponseBody added in v0.41.8

type ServiceListResponseBody struct {
	// Services
	Items []*ServiceListItemTResponseBody `form:"items,omitempty" json:"items,omitempty" xml:"items,omitempty"`
	// Time at which this list was valid
	AtTime *string              `form:"at-time,omitempty" json:"at-time,omitempty" xml:"at-time,omitempty"`
	Links  []*LinkTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
}

ServiceListResponseBody is the type of the "service" service "service-list" endpoint HTTP response body.

func ListServices

func ListServices(ctxt context.Context, cmd *ListRequest, adpt *adapter.Adapter, logger *log.Logger) (*ServiceListResponseBody, error)

type ServiceReadBadRequestResponseBody added in v0.41.8

type ServiceReadBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceReadBadRequestResponseBody is the type of the "service" service "service-read" endpoint HTTP response body for the "bad-request" error.

type ServiceReadInvalidScopesResponseBody added in v0.41.8

type ServiceReadInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceReadInvalidScopesResponseBody is the type of the "service" service "service-read" endpoint HTTP response body for the "invalid-scopes" error.

type ServiceReadNotFoundResponseBody added in v0.41.8

type ServiceReadNotFoundResponseBody struct {
	// ID of missing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceReadNotFoundResponseBody is the type of the "service" service "service-read" endpoint HTTP response body for the "not-found" error.

type ServiceReadNotImplementedResponseBody added in v0.41.8

type ServiceReadNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceReadNotImplementedResponseBody is the type of the "service" service "service-read" endpoint HTTP response body for the "not-implemented" error.

type ServiceReadResponseBody added in v0.41.8

type ServiceReadResponseBody struct {
	// Service status
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// type of controller used for this service
	ControllerSchema *string `form:"controller-schema,omitempty" json:"controller-schema,omitempty" xml:"controller-schema,omitempty"`
	// controller definition
	Controller any `form:"controller,omitempty" json:"controller,omitempty" xml:"controller,omitempty"`
	// Reference to billable account
	Account *string `form:"account,omitempty" json:"account,omitempty" xml:"account,omitempty"`
	// Reference to policy used
	Policy *string `form:"policy,omitempty" json:"policy,omitempty" xml:"policy,omitempty"`
	// time this service has been available from
	ValidFrom *string `form:"valid-from,omitempty" json:"valid-from,omitempty" xml:"valid-from,omitempty"`
	// time this service has been available to
	ValidTo *string              `form:"valid-to,omitempty" json:"valid-to,omitempty" xml:"valid-to,omitempty"`
	Links   []*LinkTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
	// ID
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Optional provider provided name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// More detailed description of the service
	Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	// Optional tags defined for service to help in categorising them
	Tags []string `form:"tags,omitempty" json:"tags,omitempty" xml:"tags,omitempty"`
	// Service parameter definitions
	Parameters []*ParameterDefTResponseBody `form:"parameters,omitempty" json:"parameters,omitempty" xml:"parameters,omitempty"`
}

ServiceReadResponseBody is the type of the "service" service "service-read" endpoint HTTP response body.

func ReadService

func ReadService(ctxt context.Context, cmd *ReadServiceRequest, adpt *adapter.Adapter, logger *log.Logger) (*ServiceReadResponseBody, error)

type ServiceUpdateBadRequestResponseBody added in v0.41.8

type ServiceUpdateBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceUpdateBadRequestResponseBody is the type of the "service" service "service-update" endpoint HTTP response body for the "bad-request" error.

type ServiceUpdateInvalidParameterResponseBody added in v0.41.8

type ServiceUpdateInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

ServiceUpdateInvalidParameterResponseBody is the type of the "service" service "service-update" endpoint HTTP response body for the "invalid-parameter" error.

type ServiceUpdateInvalidScopesResponseBody added in v0.41.8

type ServiceUpdateInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceUpdateInvalidScopesResponseBody is the type of the "service" service "service-update" endpoint HTTP response body for the "invalid-scopes" error.

type ServiceUpdateNotFoundResponseBody added in v0.41.8

type ServiceUpdateNotFoundResponseBody struct {
	// ID of missing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceUpdateNotFoundResponseBody is the type of the "service" service "service-update" endpoint HTTP response body for the "not-found" error.

type ServiceUpdateNotImplementedResponseBody added in v0.41.8

type ServiceUpdateNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ServiceUpdateNotImplementedResponseBody is the type of the "service" service "service-update" endpoint HTTP response body for the "not-implemented" error.

type ServiceUpdateRequestBody added in v0.41.8

type ServiceUpdateRequestBody struct {
	// type of controller used for this service
	ControllerSchema string `form:"controller-schema" json:"controller-schema" xml:"controller-schema"`
	// controller definition
	Controller any `form:"controller" json:"controller" xml:"controller"`
	// Reference to policy used
	Policy string `form:"policy" json:"policy" xml:"policy"`
	// ID
	ID string `form:"id" json:"id" xml:"id"`
	// Optional provider provided name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// More detailed description of the service
	Description string `form:"description" json:"description" xml:"description"`
	// Optional tags defined for service to help in categorising them
	Tags []string `form:"tags,omitempty" json:"tags,omitempty" xml:"tags,omitempty"`
	// Service parameter definitions
	Parameters []*ParameterDefT `form:"parameters" json:"parameters" xml:"parameters"`
}

ServiceUpdateRequestBody is the type of the "service" service "service-update" endpoint HTTP request body.

type ServiceUpdateResponseBody added in v0.41.8

type ServiceUpdateResponseBody struct {
	// Service status
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// type of controller used for this service
	ControllerSchema *string `form:"controller-schema,omitempty" json:"controller-schema,omitempty" xml:"controller-schema,omitempty"`
	// controller definition
	Controller any `form:"controller,omitempty" json:"controller,omitempty" xml:"controller,omitempty"`
	// Reference to billable account
	Account *string `form:"account,omitempty" json:"account,omitempty" xml:"account,omitempty"`
	// Reference to policy used
	Policy *string `form:"policy,omitempty" json:"policy,omitempty" xml:"policy,omitempty"`
	// time this service has been available from
	ValidFrom *string `form:"valid-from,omitempty" json:"valid-from,omitempty" xml:"valid-from,omitempty"`
	// time this service has been available to
	ValidTo *string              `form:"valid-to,omitempty" json:"valid-to,omitempty" xml:"valid-to,omitempty"`
	Links   []*LinkTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
	// ID
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Optional provider provided name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// More detailed description of the service
	Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	// Optional tags defined for service to help in categorising them
	Tags []string `form:"tags,omitempty" json:"tags,omitempty" xml:"tags,omitempty"`
	// Service parameter definitions
	Parameters []*ParameterDefTResponseBody `form:"parameters,omitempty" json:"parameters,omitempty" xml:"parameters,omitempty"`
}

ServiceUpdateResponseBody is the type of the "service" service "service-update" endpoint HTTP response body.

func UpdateService

func UpdateService(ctxt context.Context, id string, createAnyway bool, cmd *ServiceUpdateRequestBody, adpt *adapter.Adapter, logger *log.Logger) (*ServiceUpdateResponseBody, error)

Directories

Path Synopsis
Program to create, update & delete aspect schemas in cayp Adapted from https://github.com/maxott/cayp-cli/blob/main/pkg/adapter/adapter.go
Program to create, update & delete aspect schemas in cayp Adapted from https://github.com/maxott/cayp-cli/blob/main/pkg/adapter/adapter.go

Jump to

Keyboard shortcuts

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