RegistryApi

package
v0.0.0-...-106f0e8 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package RegistryApi provides primitives to interact the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateArtifactRequestWithBody

func NewCreateArtifactRequestWithBody(server string, params *CreateArtifactParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateArtifactRequestWithBody generates requests for CreateArtifact with any type of body

func NewCreateArtifactRuleRequest

func NewCreateArtifactRuleRequest(server string, artifactId string, body CreateArtifactRuleJSONRequestBody) (*http.Request, error)

NewCreateArtifactRuleRequest calls the generic CreateArtifactRule builder with application/json body

func NewCreateArtifactRuleRequestWithBody

func NewCreateArtifactRuleRequestWithBody(server string, artifactId string, contentType string, body io.Reader) (*http.Request, error)

NewCreateArtifactRuleRequestWithBody generates requests for CreateArtifactRule with any type of body

func NewCreateArtifactVersionRequestWithBody

func NewCreateArtifactVersionRequestWithBody(server string, artifactId string, params *CreateArtifactVersionParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateArtifactVersionRequestWithBody generates requests for CreateArtifactVersion with any type of body

func NewCreateGlobalRuleRequest

func NewCreateGlobalRuleRequest(server string, body CreateGlobalRuleJSONRequestBody) (*http.Request, error)

NewCreateGlobalRuleRequest calls the generic CreateGlobalRule builder with application/json body

func NewCreateGlobalRuleRequestWithBody

func NewCreateGlobalRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateGlobalRuleRequestWithBody generates requests for CreateGlobalRule with any type of body

func NewDeleteAllGlobalRulesRequest

func NewDeleteAllGlobalRulesRequest(server string) (*http.Request, error)

NewDeleteAllGlobalRulesRequest generates requests for DeleteAllGlobalRules

func NewDeleteArtifactRequest

func NewDeleteArtifactRequest(server string, artifactId string) (*http.Request, error)

NewDeleteArtifactRequest generates requests for DeleteArtifact

func NewDeleteArtifactRuleRequest

func NewDeleteArtifactRuleRequest(server string, artifactId string, rule string) (*http.Request, error)

NewDeleteArtifactRuleRequest generates requests for DeleteArtifactRule

func NewDeleteArtifactRulesRequest

func NewDeleteArtifactRulesRequest(server string, artifactId string) (*http.Request, error)

NewDeleteArtifactRulesRequest generates requests for DeleteArtifactRules

func NewDeleteArtifactVersionMetaDataRequest

func NewDeleteArtifactVersionMetaDataRequest(server string, artifactId string, version int) (*http.Request, error)

NewDeleteArtifactVersionMetaDataRequest generates requests for DeleteArtifactVersionMetaData

func NewDeleteGlobalRuleRequest

func NewDeleteGlobalRuleRequest(server string, rule string) (*http.Request, error)

NewDeleteGlobalRuleRequest generates requests for DeleteGlobalRule

func NewGetArtifactByGlobalIdRequest

func NewGetArtifactByGlobalIdRequest(server string, globalId int64) (*http.Request, error)

NewGetArtifactByGlobalIdRequest generates requests for GetArtifactByGlobalId

func NewGetArtifactMetaDataByContentRequest

func NewGetArtifactMetaDataByContentRequest(server string, artifactId string, body GetArtifactMetaDataByContentJSONRequestBody) (*http.Request, error)

NewGetArtifactMetaDataByContentRequest calls the generic GetArtifactMetaDataByContent builder with application/json body

func NewGetArtifactMetaDataByContentRequestWithBody

func NewGetArtifactMetaDataByContentRequestWithBody(server string, artifactId string, contentType string, body io.Reader) (*http.Request, error)

NewGetArtifactMetaDataByContentRequestWithBody generates requests for GetArtifactMetaDataByContent with any type of body

func NewGetArtifactMetaDataByGlobalIdRequest

func NewGetArtifactMetaDataByGlobalIdRequest(server string, globalId int64) (*http.Request, error)

NewGetArtifactMetaDataByGlobalIdRequest generates requests for GetArtifactMetaDataByGlobalId

func NewGetArtifactMetaDataRequest

func NewGetArtifactMetaDataRequest(server string, artifactId string) (*http.Request, error)

NewGetArtifactMetaDataRequest generates requests for GetArtifactMetaData

func NewGetArtifactRuleConfigRequest

func NewGetArtifactRuleConfigRequest(server string, artifactId string, rule string) (*http.Request, error)

NewGetArtifactRuleConfigRequest generates requests for GetArtifactRuleConfig

func NewGetArtifactVersionMetaDataRequest

func NewGetArtifactVersionMetaDataRequest(server string, artifactId string, version int) (*http.Request, error)

NewGetArtifactVersionMetaDataRequest generates requests for GetArtifactVersionMetaData

func NewGetArtifactVersionRequest

func NewGetArtifactVersionRequest(server string, artifactId string, version int) (*http.Request, error)

NewGetArtifactVersionRequest generates requests for GetArtifactVersion

func NewGetGlobalRuleConfigRequest

func NewGetGlobalRuleConfigRequest(server string, rule string) (*http.Request, error)

NewGetGlobalRuleConfigRequest generates requests for GetGlobalRuleConfig

func NewGetLatestArtifactRequest

func NewGetLatestArtifactRequest(server string, artifactId string) (*http.Request, error)

NewGetLatestArtifactRequest generates requests for GetLatestArtifact

func NewListArtifactRulesRequest

func NewListArtifactRulesRequest(server string, artifactId string) (*http.Request, error)

NewListArtifactRulesRequest generates requests for ListArtifactRules

func NewListArtifactVersionsRequest

func NewListArtifactVersionsRequest(server string, artifactId string) (*http.Request, error)

NewListArtifactVersionsRequest generates requests for ListArtifactVersions

func NewListArtifactsRequest

func NewListArtifactsRequest(server string) (*http.Request, error)

NewListArtifactsRequest generates requests for ListArtifacts

func NewListGlobalRulesRequest

func NewListGlobalRulesRequest(server string) (*http.Request, error)

NewListGlobalRulesRequest generates requests for ListGlobalRules

func NewSearchArtifactsRequest

func NewSearchArtifactsRequest(server string, params *SearchArtifactsParams) (*http.Request, error)

NewSearchArtifactsRequest generates requests for SearchArtifacts

func NewSearchVersionsRequest

func NewSearchVersionsRequest(server string, artifactId string, params *SearchVersionsParams) (*http.Request, error)

NewSearchVersionsRequest generates requests for SearchVersions

func NewTestUpdateArtifactRequestWithBody

func NewTestUpdateArtifactRequestWithBody(server string, artifactId string, params *TestUpdateArtifactParams, contentType string, body io.Reader) (*http.Request, error)

NewTestUpdateArtifactRequestWithBody generates requests for TestUpdateArtifact with any type of body

func NewUpdateArtifactMetaDataRequestWithBody

func NewUpdateArtifactMetaDataRequestWithBody(server string, artifactId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateArtifactMetaDataRequestWithBody generates requests for UpdateArtifactMetaData with any type of body

func NewUpdateArtifactRequestWithBody

func NewUpdateArtifactRequestWithBody(server string, artifactId string, params *UpdateArtifactParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateArtifactRequestWithBody generates requests for UpdateArtifact with any type of body

func NewUpdateArtifactRuleConfigRequest

func NewUpdateArtifactRuleConfigRequest(server string, artifactId string, rule string, body UpdateArtifactRuleConfigJSONRequestBody) (*http.Request, error)

NewUpdateArtifactRuleConfigRequest calls the generic UpdateArtifactRuleConfig builder with application/json body

func NewUpdateArtifactRuleConfigRequestWithBody

func NewUpdateArtifactRuleConfigRequestWithBody(server string, artifactId string, rule string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateArtifactRuleConfigRequestWithBody generates requests for UpdateArtifactRuleConfig with any type of body

func NewUpdateArtifactStateRequest

func NewUpdateArtifactStateRequest(server string, artifactId string, body UpdateArtifactStateJSONRequestBody) (*http.Request, error)

NewUpdateArtifactStateRequest calls the generic UpdateArtifactState builder with application/json body

func NewUpdateArtifactStateRequestWithBody

func NewUpdateArtifactStateRequestWithBody(server string, artifactId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateArtifactStateRequestWithBody generates requests for UpdateArtifactState with any type of body

func NewUpdateArtifactVersionMetaDataRequest

func NewUpdateArtifactVersionMetaDataRequest(server string, artifactId string, version int, body UpdateArtifactVersionMetaDataJSONRequestBody) (*http.Request, error)

NewUpdateArtifactVersionMetaDataRequest calls the generic UpdateArtifactVersionMetaData builder with application/json body

func NewUpdateArtifactVersionMetaDataRequestWithBody

func NewUpdateArtifactVersionMetaDataRequestWithBody(server string, artifactId string, version int, contentType string, body io.Reader) (*http.Request, error)

NewUpdateArtifactVersionMetaDataRequestWithBody generates requests for UpdateArtifactVersionMetaData with any type of body

func NewUpdateArtifactVersionStateRequest

func NewUpdateArtifactVersionStateRequest(server string, artifactId string, version int, body UpdateArtifactVersionStateJSONRequestBody) (*http.Request, error)

NewUpdateArtifactVersionStateRequest calls the generic UpdateArtifactVersionState builder with application/json body

func NewUpdateArtifactVersionStateRequestWithBody

func NewUpdateArtifactVersionStateRequestWithBody(server string, artifactId string, version int, contentType string, body io.Reader) (*http.Request, error)

NewUpdateArtifactVersionStateRequestWithBody generates requests for UpdateArtifactVersionState with any type of body

func NewUpdateGlobalRuleConfigRequest

func NewUpdateGlobalRuleConfigRequest(server string, rule string, body UpdateGlobalRuleConfigJSONRequestBody) (*http.Request, error)

NewUpdateGlobalRuleConfigRequest calls the generic UpdateGlobalRuleConfig builder with application/json body

func NewUpdateGlobalRuleConfigRequestWithBody

func NewUpdateGlobalRuleConfigRequestWithBody(server string, rule string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateGlobalRuleConfigRequestWithBody generates requests for UpdateGlobalRuleConfig with any type of body

Types

type ArtifactMetaData

type ArtifactMetaData struct {
	CreatedBy   string    `json:"createdBy"`
	CreatedOn   int       `json:"createdOn"`
	Description *string   `json:"description,omitempty"`
	GlobalId    int64     `json:"globalId"`
	Id          string    `json:"id"`
	Labels      *[]string `json:"labels,omitempty"`
	ModifiedBy  string    `json:"modifiedBy"`
	ModifiedOn  int       `json:"modifiedOn"`
	Name        *string   `json:"name,omitempty"`

	// User-defined name-value pairs. Name and value must be strings.
	Properties *Properties `json:"properties,omitempty"`

	// Describes the state of an artifact or artifact version.  The following states
	// are possible:
	//
	// * ENABLED
	// * DISABLED
	// * DEPRECATED
	State   ArtifactState `json:"state"`
	Type    ArtifactType  `json:"type"`
	Version int64         `json:"version"`
}

ArtifactMetaData defines model for ArtifactMetaData.

type ArtifactSearchResults

type ArtifactSearchResults struct {

	// The artifacts that matched the search criteria.
	Artifacts []SearchedArtifact `json:"artifacts"`

	// The total number of artifacts that matched the search criteria.
	Count int `json:"count"`
}

ArtifactSearchResults defines model for ArtifactSearchResults.

type ArtifactState

type ArtifactState string

ArtifactState defines model for ArtifactState.

const (
	ArtifactState_DELETED    ArtifactState = "DELETED"
	ArtifactState_DEPRECATED ArtifactState = "DEPRECATED"
	ArtifactState_DISABLED   ArtifactState = "DISABLED"
	ArtifactState_ENABLED    ArtifactState = "ENABLED"
)

List of ArtifactState

type ArtifactType

type ArtifactType string

ArtifactType defines model for ArtifactType.

const (
	ArtifactType_ASYNCAPI    ArtifactType = "ASYNCAPI"
	ArtifactType_AVRO        ArtifactType = "AVRO"
	ArtifactType_GRAPHQL     ArtifactType = "GRAPHQL"
	ArtifactType_JSON        ArtifactType = "JSON"
	ArtifactType_KCONNECT    ArtifactType = "KCONNECT"
	ArtifactType_OPENAPI     ArtifactType = "OPENAPI"
	ArtifactType_PROTOBUF    ArtifactType = "PROTOBUF"
	ArtifactType_PROTOBUF_FD ArtifactType = "PROTOBUF_FD"
	ArtifactType_WSDL        ArtifactType = "WSDL"
	ArtifactType_XML         ArtifactType = "XML"
	ArtifactType_XSD         ArtifactType = "XSD"
)

List of ArtifactType

type BadRequest

type BadRequest Error

BadRequest defines model for BadRequest.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateArtifactRule

func (c *Client) CreateArtifactRule(ctx context.Context, artifactId string, body CreateArtifactRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateArtifactRuleWithBody

func (c *Client) CreateArtifactRuleWithBody(ctx context.Context, artifactId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateArtifactVersionWithBody

func (c *Client) CreateArtifactVersionWithBody(ctx context.Context, artifactId string, params *CreateArtifactVersionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateArtifactWithBody

func (c *Client) CreateArtifactWithBody(ctx context.Context, params *CreateArtifactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateGlobalRule

func (c *Client) CreateGlobalRule(ctx context.Context, body CreateGlobalRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateGlobalRuleWithBody

func (c *Client) CreateGlobalRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteAllGlobalRules

func (c *Client) DeleteAllGlobalRules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteArtifact

func (c *Client) DeleteArtifact(ctx context.Context, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteArtifactRule

func (c *Client) DeleteArtifactRule(ctx context.Context, artifactId string, rule string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteArtifactRules

func (c *Client) DeleteArtifactRules(ctx context.Context, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteArtifactVersionMetaData

func (c *Client) DeleteArtifactVersionMetaData(ctx context.Context, artifactId string, version int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteGlobalRule

func (c *Client) DeleteGlobalRule(ctx context.Context, rule string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArtifactByGlobalId

func (c *Client) GetArtifactByGlobalId(ctx context.Context, globalId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArtifactMetaData

func (c *Client) GetArtifactMetaData(ctx context.Context, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArtifactMetaDataByContent

func (c *Client) GetArtifactMetaDataByContent(ctx context.Context, artifactId string, body GetArtifactMetaDataByContentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArtifactMetaDataByContentWithBody

func (c *Client) GetArtifactMetaDataByContentWithBody(ctx context.Context, artifactId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArtifactMetaDataByGlobalId

func (c *Client) GetArtifactMetaDataByGlobalId(ctx context.Context, globalId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArtifactRuleConfig

func (c *Client) GetArtifactRuleConfig(ctx context.Context, artifactId string, rule string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArtifactVersion

func (c *Client) GetArtifactVersion(ctx context.Context, artifactId string, version int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArtifactVersionMetaData

func (c *Client) GetArtifactVersionMetaData(ctx context.Context, artifactId string, version int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetGlobalRuleConfig

func (c *Client) GetGlobalRuleConfig(ctx context.Context, rule string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLatestArtifact

func (c *Client) GetLatestArtifact(ctx context.Context, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListArtifactRules

func (c *Client) ListArtifactRules(ctx context.Context, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListArtifactVersions

func (c *Client) ListArtifactVersions(ctx context.Context, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListArtifacts

func (c *Client) ListArtifacts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListGlobalRules

func (c *Client) ListGlobalRules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SearchArtifacts

func (c *Client) SearchArtifacts(ctx context.Context, params *SearchArtifactsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SearchVersions

func (c *Client) SearchVersions(ctx context.Context, artifactId string, params *SearchVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TestUpdateArtifactWithBody

func (c *Client) TestUpdateArtifactWithBody(ctx context.Context, artifactId string, params *TestUpdateArtifactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateArtifactMetaDataWithBody

func (c *Client) UpdateArtifactMetaDataWithBody(ctx context.Context, artifactId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateArtifactRuleConfig

func (c *Client) UpdateArtifactRuleConfig(ctx context.Context, artifactId string, rule string, body UpdateArtifactRuleConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateArtifactRuleConfigWithBody

func (c *Client) UpdateArtifactRuleConfigWithBody(ctx context.Context, artifactId string, rule string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateArtifactState

func (c *Client) UpdateArtifactState(ctx context.Context, artifactId string, body UpdateArtifactStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateArtifactStateWithBody

func (c *Client) UpdateArtifactStateWithBody(ctx context.Context, artifactId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateArtifactVersionMetaData

func (c *Client) UpdateArtifactVersionMetaData(ctx context.Context, artifactId string, version int, body UpdateArtifactVersionMetaDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateArtifactVersionMetaDataWithBody

func (c *Client) UpdateArtifactVersionMetaDataWithBody(ctx context.Context, artifactId string, version int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateArtifactVersionState

func (c *Client) UpdateArtifactVersionState(ctx context.Context, artifactId string, version int, body UpdateArtifactVersionStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateArtifactVersionStateWithBody

func (c *Client) UpdateArtifactVersionStateWithBody(ctx context.Context, artifactId string, version int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateArtifactWithBody

func (c *Client) UpdateArtifactWithBody(ctx context.Context, artifactId string, params *UpdateArtifactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateGlobalRuleConfig

func (c *Client) UpdateGlobalRuleConfig(ctx context.Context, rule string, body UpdateGlobalRuleConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateGlobalRuleConfigWithBody

func (c *Client) UpdateGlobalRuleConfigWithBody(ctx context.Context, rule string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ListArtifacts request
	ListArtifacts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateArtifact request  with any body
	CreateArtifactWithBody(ctx context.Context, params *CreateArtifactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteArtifact request
	DeleteArtifact(ctx context.Context, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLatestArtifact request
	GetLatestArtifact(ctx context.Context, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateArtifact request  with any body
	UpdateArtifactWithBody(ctx context.Context, artifactId string, params *UpdateArtifactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetArtifactMetaData request
	GetArtifactMetaData(ctx context.Context, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetArtifactMetaDataByContent request  with any body
	GetArtifactMetaDataByContentWithBody(ctx context.Context, artifactId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetArtifactMetaDataByContent(ctx context.Context, artifactId string, body GetArtifactMetaDataByContentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateArtifactMetaData request  with any body
	UpdateArtifactMetaDataWithBody(ctx context.Context, artifactId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteArtifactRules request
	DeleteArtifactRules(ctx context.Context, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListArtifactRules request
	ListArtifactRules(ctx context.Context, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateArtifactRule request  with any body
	CreateArtifactRuleWithBody(ctx context.Context, artifactId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateArtifactRule(ctx context.Context, artifactId string, body CreateArtifactRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteArtifactRule request
	DeleteArtifactRule(ctx context.Context, artifactId string, rule string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetArtifactRuleConfig request
	GetArtifactRuleConfig(ctx context.Context, artifactId string, rule string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateArtifactRuleConfig request  with any body
	UpdateArtifactRuleConfigWithBody(ctx context.Context, artifactId string, rule string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateArtifactRuleConfig(ctx context.Context, artifactId string, rule string, body UpdateArtifactRuleConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateArtifactState request  with any body
	UpdateArtifactStateWithBody(ctx context.Context, artifactId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateArtifactState(ctx context.Context, artifactId string, body UpdateArtifactStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TestUpdateArtifact request  with any body
	TestUpdateArtifactWithBody(ctx context.Context, artifactId string, params *TestUpdateArtifactParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListArtifactVersions request
	ListArtifactVersions(ctx context.Context, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateArtifactVersion request  with any body
	CreateArtifactVersionWithBody(ctx context.Context, artifactId string, params *CreateArtifactVersionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetArtifactVersion request
	GetArtifactVersion(ctx context.Context, artifactId string, version int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteArtifactVersionMetaData request
	DeleteArtifactVersionMetaData(ctx context.Context, artifactId string, version int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetArtifactVersionMetaData request
	GetArtifactVersionMetaData(ctx context.Context, artifactId string, version int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateArtifactVersionMetaData request  with any body
	UpdateArtifactVersionMetaDataWithBody(ctx context.Context, artifactId string, version int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateArtifactVersionMetaData(ctx context.Context, artifactId string, version int, body UpdateArtifactVersionMetaDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateArtifactVersionState request  with any body
	UpdateArtifactVersionStateWithBody(ctx context.Context, artifactId string, version int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateArtifactVersionState(ctx context.Context, artifactId string, version int, body UpdateArtifactVersionStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetArtifactByGlobalId request
	GetArtifactByGlobalId(ctx context.Context, globalId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetArtifactMetaDataByGlobalId request
	GetArtifactMetaDataByGlobalId(ctx context.Context, globalId int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteAllGlobalRules request
	DeleteAllGlobalRules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListGlobalRules request
	ListGlobalRules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateGlobalRule request  with any body
	CreateGlobalRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateGlobalRule(ctx context.Context, body CreateGlobalRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteGlobalRule request
	DeleteGlobalRule(ctx context.Context, rule string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetGlobalRuleConfig request
	GetGlobalRuleConfig(ctx context.Context, rule string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateGlobalRuleConfig request  with any body
	UpdateGlobalRuleConfigWithBody(ctx context.Context, rule string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateGlobalRuleConfig(ctx context.Context, rule string, body UpdateGlobalRuleConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SearchArtifacts request
	SearchArtifacts(ctx context.Context, params *SearchArtifactsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SearchVersions request
	SearchVersions(ctx context.Context, artifactId string, params *SearchVersionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateArtifactRuleWithBodyWithResponse

func (c *ClientWithResponses) CreateArtifactRuleWithBodyWithResponse(ctx context.Context, artifactId string, contentType string, body io.Reader) (*CreateArtifactRuleResponse, error)

CreateArtifactRuleWithBodyWithResponse request with arbitrary body returning *CreateArtifactRuleResponse

func (*ClientWithResponses) CreateArtifactRuleWithResponse

func (c *ClientWithResponses) CreateArtifactRuleWithResponse(ctx context.Context, artifactId string, body CreateArtifactRuleJSONRequestBody) (*CreateArtifactRuleResponse, error)

func (*ClientWithResponses) CreateArtifactVersionWithBodyWithResponse

func (c *ClientWithResponses) CreateArtifactVersionWithBodyWithResponse(ctx context.Context, artifactId string, params *CreateArtifactVersionParams, contentType string, body io.Reader) (*CreateArtifactVersionResponse, error)

CreateArtifactVersionWithBodyWithResponse request with arbitrary body returning *CreateArtifactVersionResponse

func (*ClientWithResponses) CreateArtifactWithBodyWithResponse

func (c *ClientWithResponses) CreateArtifactWithBodyWithResponse(ctx context.Context, params *CreateArtifactParams, contentType string, body io.Reader) (*CreateArtifactResponse, error)

CreateArtifactWithBodyWithResponse request with arbitrary body returning *CreateArtifactResponse

func (*ClientWithResponses) CreateGlobalRuleWithBodyWithResponse

func (c *ClientWithResponses) CreateGlobalRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateGlobalRuleResponse, error)

CreateGlobalRuleWithBodyWithResponse request with arbitrary body returning *CreateGlobalRuleResponse

func (*ClientWithResponses) CreateGlobalRuleWithResponse

func (*ClientWithResponses) DeleteAllGlobalRulesWithResponse

func (c *ClientWithResponses) DeleteAllGlobalRulesWithResponse(ctx context.Context) (*DeleteAllGlobalRulesResponse, error)

DeleteAllGlobalRulesWithResponse request returning *DeleteAllGlobalRulesResponse

func (*ClientWithResponses) DeleteArtifactRuleWithResponse

func (c *ClientWithResponses) DeleteArtifactRuleWithResponse(ctx context.Context, artifactId string, rule string) (*DeleteArtifactRuleResponse, error)

DeleteArtifactRuleWithResponse request returning *DeleteArtifactRuleResponse

func (*ClientWithResponses) DeleteArtifactRulesWithResponse

func (c *ClientWithResponses) DeleteArtifactRulesWithResponse(ctx context.Context, artifactId string) (*DeleteArtifactRulesResponse, error)

DeleteArtifactRulesWithResponse request returning *DeleteArtifactRulesResponse

func (*ClientWithResponses) DeleteArtifactVersionMetaDataWithResponse

func (c *ClientWithResponses) DeleteArtifactVersionMetaDataWithResponse(ctx context.Context, artifactId string, version int) (*DeleteArtifactVersionMetaDataResponse, error)

DeleteArtifactVersionMetaDataWithResponse request returning *DeleteArtifactVersionMetaDataResponse

func (*ClientWithResponses) DeleteArtifactWithResponse

func (c *ClientWithResponses) DeleteArtifactWithResponse(ctx context.Context, artifactId string) (*DeleteArtifactResponse, error)

DeleteArtifactWithResponse request returning *DeleteArtifactResponse

func (*ClientWithResponses) DeleteGlobalRuleWithResponse

func (c *ClientWithResponses) DeleteGlobalRuleWithResponse(ctx context.Context, rule string) (*DeleteGlobalRuleResponse, error)

DeleteGlobalRuleWithResponse request returning *DeleteGlobalRuleResponse

func (*ClientWithResponses) GetArtifactByGlobalIdWithResponse

func (c *ClientWithResponses) GetArtifactByGlobalIdWithResponse(ctx context.Context, globalId int64) (*GetArtifactByGlobalIdResponse, error)

GetArtifactByGlobalIdWithResponse request returning *GetArtifactByGlobalIdResponse

func (*ClientWithResponses) GetArtifactMetaDataByContentWithBodyWithResponse

func (c *ClientWithResponses) GetArtifactMetaDataByContentWithBodyWithResponse(ctx context.Context, artifactId string, contentType string, body io.Reader) (*GetArtifactMetaDataByContentResponse, error)

GetArtifactMetaDataByContentWithBodyWithResponse request with arbitrary body returning *GetArtifactMetaDataByContentResponse

func (*ClientWithResponses) GetArtifactMetaDataByContentWithResponse

func (c *ClientWithResponses) GetArtifactMetaDataByContentWithResponse(ctx context.Context, artifactId string, body GetArtifactMetaDataByContentJSONRequestBody) (*GetArtifactMetaDataByContentResponse, error)

func (*ClientWithResponses) GetArtifactMetaDataByGlobalIdWithResponse

func (c *ClientWithResponses) GetArtifactMetaDataByGlobalIdWithResponse(ctx context.Context, globalId int64) (*GetArtifactMetaDataByGlobalIdResponse, error)

GetArtifactMetaDataByGlobalIdWithResponse request returning *GetArtifactMetaDataByGlobalIdResponse

func (*ClientWithResponses) GetArtifactMetaDataWithResponse

func (c *ClientWithResponses) GetArtifactMetaDataWithResponse(ctx context.Context, artifactId string) (*GetArtifactMetaDataResponse, error)

GetArtifactMetaDataWithResponse request returning *GetArtifactMetaDataResponse

func (*ClientWithResponses) GetArtifactRuleConfigWithResponse

func (c *ClientWithResponses) GetArtifactRuleConfigWithResponse(ctx context.Context, artifactId string, rule string) (*GetArtifactRuleConfigResponse, error)

GetArtifactRuleConfigWithResponse request returning *GetArtifactRuleConfigResponse

func (*ClientWithResponses) GetArtifactVersionMetaDataWithResponse

func (c *ClientWithResponses) GetArtifactVersionMetaDataWithResponse(ctx context.Context, artifactId string, version int) (*GetArtifactVersionMetaDataResponse, error)

GetArtifactVersionMetaDataWithResponse request returning *GetArtifactVersionMetaDataResponse

func (*ClientWithResponses) GetArtifactVersionWithResponse

func (c *ClientWithResponses) GetArtifactVersionWithResponse(ctx context.Context, artifactId string, version int) (*GetArtifactVersionResponse, error)

GetArtifactVersionWithResponse request returning *GetArtifactVersionResponse

func (*ClientWithResponses) GetGlobalRuleConfigWithResponse

func (c *ClientWithResponses) GetGlobalRuleConfigWithResponse(ctx context.Context, rule string) (*GetGlobalRuleConfigResponse, error)

GetGlobalRuleConfigWithResponse request returning *GetGlobalRuleConfigResponse

func (*ClientWithResponses) GetLatestArtifactWithResponse

func (c *ClientWithResponses) GetLatestArtifactWithResponse(ctx context.Context, artifactId string) (*GetLatestArtifactResponse, error)

GetLatestArtifactWithResponse request returning *GetLatestArtifactResponse

func (*ClientWithResponses) ListArtifactRulesWithResponse

func (c *ClientWithResponses) ListArtifactRulesWithResponse(ctx context.Context, artifactId string) (*ListArtifactRulesResponse, error)

ListArtifactRulesWithResponse request returning *ListArtifactRulesResponse

func (*ClientWithResponses) ListArtifactVersionsWithResponse

func (c *ClientWithResponses) ListArtifactVersionsWithResponse(ctx context.Context, artifactId string) (*ListArtifactVersionsResponse, error)

ListArtifactVersionsWithResponse request returning *ListArtifactVersionsResponse

func (*ClientWithResponses) ListArtifactsWithResponse

func (c *ClientWithResponses) ListArtifactsWithResponse(ctx context.Context) (*ListArtifactsResponse, error)

ListArtifactsWithResponse request returning *ListArtifactsResponse

func (*ClientWithResponses) ListGlobalRulesWithResponse

func (c *ClientWithResponses) ListGlobalRulesWithResponse(ctx context.Context) (*ListGlobalRulesResponse, error)

ListGlobalRulesWithResponse request returning *ListGlobalRulesResponse

func (*ClientWithResponses) SearchArtifactsWithResponse

func (c *ClientWithResponses) SearchArtifactsWithResponse(ctx context.Context, params *SearchArtifactsParams) (*SearchArtifactsResponse, error)

SearchArtifactsWithResponse request returning *SearchArtifactsResponse

func (*ClientWithResponses) SearchVersionsWithResponse

func (c *ClientWithResponses) SearchVersionsWithResponse(ctx context.Context, artifactId string, params *SearchVersionsParams) (*SearchVersionsResponse, error)

SearchVersionsWithResponse request returning *SearchVersionsResponse

func (*ClientWithResponses) TestUpdateArtifactWithBodyWithResponse

func (c *ClientWithResponses) TestUpdateArtifactWithBodyWithResponse(ctx context.Context, artifactId string, params *TestUpdateArtifactParams, contentType string, body io.Reader) (*TestUpdateArtifactResponse, error)

TestUpdateArtifactWithBodyWithResponse request with arbitrary body returning *TestUpdateArtifactResponse

func (*ClientWithResponses) UpdateArtifactMetaDataWithBodyWithResponse

func (c *ClientWithResponses) UpdateArtifactMetaDataWithBodyWithResponse(ctx context.Context, artifactId string, contentType string, body io.Reader) (*UpdateArtifactMetaDataResponse, error)

UpdateArtifactMetaDataWithBodyWithResponse request with arbitrary body returning *UpdateArtifactMetaDataResponse

func (*ClientWithResponses) UpdateArtifactRuleConfigWithBodyWithResponse

func (c *ClientWithResponses) UpdateArtifactRuleConfigWithBodyWithResponse(ctx context.Context, artifactId string, rule string, contentType string, body io.Reader) (*UpdateArtifactRuleConfigResponse, error)

UpdateArtifactRuleConfigWithBodyWithResponse request with arbitrary body returning *UpdateArtifactRuleConfigResponse

func (*ClientWithResponses) UpdateArtifactRuleConfigWithResponse

func (c *ClientWithResponses) UpdateArtifactRuleConfigWithResponse(ctx context.Context, artifactId string, rule string, body UpdateArtifactRuleConfigJSONRequestBody) (*UpdateArtifactRuleConfigResponse, error)

func (*ClientWithResponses) UpdateArtifactStateWithBodyWithResponse

func (c *ClientWithResponses) UpdateArtifactStateWithBodyWithResponse(ctx context.Context, artifactId string, contentType string, body io.Reader) (*UpdateArtifactStateResponse, error)

UpdateArtifactStateWithBodyWithResponse request with arbitrary body returning *UpdateArtifactStateResponse

func (*ClientWithResponses) UpdateArtifactStateWithResponse

func (c *ClientWithResponses) UpdateArtifactStateWithResponse(ctx context.Context, artifactId string, body UpdateArtifactStateJSONRequestBody) (*UpdateArtifactStateResponse, error)

func (*ClientWithResponses) UpdateArtifactVersionMetaDataWithBodyWithResponse

func (c *ClientWithResponses) UpdateArtifactVersionMetaDataWithBodyWithResponse(ctx context.Context, artifactId string, version int, contentType string, body io.Reader) (*UpdateArtifactVersionMetaDataResponse, error)

UpdateArtifactVersionMetaDataWithBodyWithResponse request with arbitrary body returning *UpdateArtifactVersionMetaDataResponse

func (*ClientWithResponses) UpdateArtifactVersionMetaDataWithResponse

func (c *ClientWithResponses) UpdateArtifactVersionMetaDataWithResponse(ctx context.Context, artifactId string, version int, body UpdateArtifactVersionMetaDataJSONRequestBody) (*UpdateArtifactVersionMetaDataResponse, error)

func (*ClientWithResponses) UpdateArtifactVersionStateWithBodyWithResponse

func (c *ClientWithResponses) UpdateArtifactVersionStateWithBodyWithResponse(ctx context.Context, artifactId string, version int, contentType string, body io.Reader) (*UpdateArtifactVersionStateResponse, error)

UpdateArtifactVersionStateWithBodyWithResponse request with arbitrary body returning *UpdateArtifactVersionStateResponse

func (*ClientWithResponses) UpdateArtifactVersionStateWithResponse

func (c *ClientWithResponses) UpdateArtifactVersionStateWithResponse(ctx context.Context, artifactId string, version int, body UpdateArtifactVersionStateJSONRequestBody) (*UpdateArtifactVersionStateResponse, error)

func (*ClientWithResponses) UpdateArtifactWithBodyWithResponse

func (c *ClientWithResponses) UpdateArtifactWithBodyWithResponse(ctx context.Context, artifactId string, params *UpdateArtifactParams, contentType string, body io.Reader) (*UpdateArtifactResponse, error)

UpdateArtifactWithBodyWithResponse request with arbitrary body returning *UpdateArtifactResponse

func (*ClientWithResponses) UpdateGlobalRuleConfigWithBodyWithResponse

func (c *ClientWithResponses) UpdateGlobalRuleConfigWithBodyWithResponse(ctx context.Context, rule string, contentType string, body io.Reader) (*UpdateGlobalRuleConfigResponse, error)

UpdateGlobalRuleConfigWithBodyWithResponse request with arbitrary body returning *UpdateGlobalRuleConfigResponse

func (*ClientWithResponses) UpdateGlobalRuleConfigWithResponse

func (c *ClientWithResponses) UpdateGlobalRuleConfigWithResponse(ctx context.Context, rule string, body UpdateGlobalRuleConfigJSONRequestBody) (*UpdateGlobalRuleConfigResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListArtifacts request
	ListArtifactsWithResponse(ctx context.Context) (*ListArtifactsResponse, error)

	// CreateArtifact request  with any body
	CreateArtifactWithBodyWithResponse(ctx context.Context, params *CreateArtifactParams, contentType string, body io.Reader) (*CreateArtifactResponse, error)

	// DeleteArtifact request
	DeleteArtifactWithResponse(ctx context.Context, artifactId string) (*DeleteArtifactResponse, error)

	// GetLatestArtifact request
	GetLatestArtifactWithResponse(ctx context.Context, artifactId string) (*GetLatestArtifactResponse, error)

	// UpdateArtifact request  with any body
	UpdateArtifactWithBodyWithResponse(ctx context.Context, artifactId string, params *UpdateArtifactParams, contentType string, body io.Reader) (*UpdateArtifactResponse, error)

	// GetArtifactMetaData request
	GetArtifactMetaDataWithResponse(ctx context.Context, artifactId string) (*GetArtifactMetaDataResponse, error)

	// GetArtifactMetaDataByContent request  with any body
	GetArtifactMetaDataByContentWithBodyWithResponse(ctx context.Context, artifactId string, contentType string, body io.Reader) (*GetArtifactMetaDataByContentResponse, error)

	GetArtifactMetaDataByContentWithResponse(ctx context.Context, artifactId string, body GetArtifactMetaDataByContentJSONRequestBody) (*GetArtifactMetaDataByContentResponse, error)

	// UpdateArtifactMetaData request  with any body
	UpdateArtifactMetaDataWithBodyWithResponse(ctx context.Context, artifactId string, contentType string, body io.Reader) (*UpdateArtifactMetaDataResponse, error)

	// DeleteArtifactRules request
	DeleteArtifactRulesWithResponse(ctx context.Context, artifactId string) (*DeleteArtifactRulesResponse, error)

	// ListArtifactRules request
	ListArtifactRulesWithResponse(ctx context.Context, artifactId string) (*ListArtifactRulesResponse, error)

	// CreateArtifactRule request  with any body
	CreateArtifactRuleWithBodyWithResponse(ctx context.Context, artifactId string, contentType string, body io.Reader) (*CreateArtifactRuleResponse, error)

	CreateArtifactRuleWithResponse(ctx context.Context, artifactId string, body CreateArtifactRuleJSONRequestBody) (*CreateArtifactRuleResponse, error)

	// DeleteArtifactRule request
	DeleteArtifactRuleWithResponse(ctx context.Context, artifactId string, rule string) (*DeleteArtifactRuleResponse, error)

	// GetArtifactRuleConfig request
	GetArtifactRuleConfigWithResponse(ctx context.Context, artifactId string, rule string) (*GetArtifactRuleConfigResponse, error)

	// UpdateArtifactRuleConfig request  with any body
	UpdateArtifactRuleConfigWithBodyWithResponse(ctx context.Context, artifactId string, rule string, contentType string, body io.Reader) (*UpdateArtifactRuleConfigResponse, error)

	UpdateArtifactRuleConfigWithResponse(ctx context.Context, artifactId string, rule string, body UpdateArtifactRuleConfigJSONRequestBody) (*UpdateArtifactRuleConfigResponse, error)

	// UpdateArtifactState request  with any body
	UpdateArtifactStateWithBodyWithResponse(ctx context.Context, artifactId string, contentType string, body io.Reader) (*UpdateArtifactStateResponse, error)

	UpdateArtifactStateWithResponse(ctx context.Context, artifactId string, body UpdateArtifactStateJSONRequestBody) (*UpdateArtifactStateResponse, error)

	// TestUpdateArtifact request  with any body
	TestUpdateArtifactWithBodyWithResponse(ctx context.Context, artifactId string, params *TestUpdateArtifactParams, contentType string, body io.Reader) (*TestUpdateArtifactResponse, error)

	// ListArtifactVersions request
	ListArtifactVersionsWithResponse(ctx context.Context, artifactId string) (*ListArtifactVersionsResponse, error)

	// CreateArtifactVersion request  with any body
	CreateArtifactVersionWithBodyWithResponse(ctx context.Context, artifactId string, params *CreateArtifactVersionParams, contentType string, body io.Reader) (*CreateArtifactVersionResponse, error)

	// GetArtifactVersion request
	GetArtifactVersionWithResponse(ctx context.Context, artifactId string, version int) (*GetArtifactVersionResponse, error)

	// DeleteArtifactVersionMetaData request
	DeleteArtifactVersionMetaDataWithResponse(ctx context.Context, artifactId string, version int) (*DeleteArtifactVersionMetaDataResponse, error)

	// GetArtifactVersionMetaData request
	GetArtifactVersionMetaDataWithResponse(ctx context.Context, artifactId string, version int) (*GetArtifactVersionMetaDataResponse, error)

	// UpdateArtifactVersionMetaData request  with any body
	UpdateArtifactVersionMetaDataWithBodyWithResponse(ctx context.Context, artifactId string, version int, contentType string, body io.Reader) (*UpdateArtifactVersionMetaDataResponse, error)

	UpdateArtifactVersionMetaDataWithResponse(ctx context.Context, artifactId string, version int, body UpdateArtifactVersionMetaDataJSONRequestBody) (*UpdateArtifactVersionMetaDataResponse, error)

	// UpdateArtifactVersionState request  with any body
	UpdateArtifactVersionStateWithBodyWithResponse(ctx context.Context, artifactId string, version int, contentType string, body io.Reader) (*UpdateArtifactVersionStateResponse, error)

	UpdateArtifactVersionStateWithResponse(ctx context.Context, artifactId string, version int, body UpdateArtifactVersionStateJSONRequestBody) (*UpdateArtifactVersionStateResponse, error)

	// GetArtifactByGlobalId request
	GetArtifactByGlobalIdWithResponse(ctx context.Context, globalId int64) (*GetArtifactByGlobalIdResponse, error)

	// GetArtifactMetaDataByGlobalId request
	GetArtifactMetaDataByGlobalIdWithResponse(ctx context.Context, globalId int64) (*GetArtifactMetaDataByGlobalIdResponse, error)

	// DeleteAllGlobalRules request
	DeleteAllGlobalRulesWithResponse(ctx context.Context) (*DeleteAllGlobalRulesResponse, error)

	// ListGlobalRules request
	ListGlobalRulesWithResponse(ctx context.Context) (*ListGlobalRulesResponse, error)

	// CreateGlobalRule request  with any body
	CreateGlobalRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateGlobalRuleResponse, error)

	CreateGlobalRuleWithResponse(ctx context.Context, body CreateGlobalRuleJSONRequestBody) (*CreateGlobalRuleResponse, error)

	// DeleteGlobalRule request
	DeleteGlobalRuleWithResponse(ctx context.Context, rule string) (*DeleteGlobalRuleResponse, error)

	// GetGlobalRuleConfig request
	GetGlobalRuleConfigWithResponse(ctx context.Context, rule string) (*GetGlobalRuleConfigResponse, error)

	// UpdateGlobalRuleConfig request  with any body
	UpdateGlobalRuleConfigWithBodyWithResponse(ctx context.Context, rule string, contentType string, body io.Reader) (*UpdateGlobalRuleConfigResponse, error)

	UpdateGlobalRuleConfigWithResponse(ctx context.Context, rule string, body UpdateGlobalRuleConfigJSONRequestBody) (*UpdateGlobalRuleConfigResponse, error)

	// SearchArtifacts request
	SearchArtifactsWithResponse(ctx context.Context, params *SearchArtifactsParams) (*SearchArtifactsResponse, error)

	// SearchVersions request
	SearchVersionsWithResponse(ctx context.Context, artifactId string, params *SearchVersionsParams) (*SearchVersionsResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Conflict

type Conflict Error

Conflict defines model for Conflict.

type CreateArtifactParams

type CreateArtifactParams struct {

	// Set this option to instruct the server on what to do if the artifact already exists.
	IfExists *string `json:"ifExists,omitempty"`

	// Specifies the type of the artifact being added. Possible values include:
	//
	// * Avro (`AVRO`)
	// * Protobuf (`PROTOBUF`)
	// * Protobuf File Descriptor (`PROTOBUF_FD`)
	// * JSON Schema (`JSON`)
	// * Kafka Connect (`KCONNECT`)
	// * OpenAPI (`OPENAPI`)
	// * AsyncAPI (`ASYNCAPI`)
	// * GraphQL (`GRAPHQL`)
	// * Web Services Description Language (`WSDL`)
	// * XML Schema (`XSD`)
	XRegistryArtifactType *string `json:"X-Registry-ArtifactType,omitempty"`

	// A client-provided, globally unique identifier for the new artifact.
	XRegistryArtifactId *string `json:"X-Registry-ArtifactId,omitempty"`
}

CreateArtifactParams defines parameters for CreateArtifact.

type CreateArtifactResponse

type CreateArtifactResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ArtifactMetaData
	JSON400      *Error
	JSON409      *Error
	JSON500      *Error
}

func ParseCreateArtifactResponse

func ParseCreateArtifactResponse(rsp *http.Response) (*CreateArtifactResponse, error)

ParseCreateArtifactResponse parses an HTTP response from a CreateArtifactWithResponse call

func (CreateArtifactResponse) Status

func (r CreateArtifactResponse) Status() string

Status returns HTTPResponse.Status

func (CreateArtifactResponse) StatusCode

func (r CreateArtifactResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateArtifactRuleJSONBody

type CreateArtifactRuleJSONBody Rule

CreateArtifactRuleJSONBody defines parameters for CreateArtifactRule.

type CreateArtifactRuleJSONRequestBody

type CreateArtifactRuleJSONRequestBody CreateArtifactRuleJSONBody

CreateArtifactRuleJSONRequestBody defines body for CreateArtifactRule for application/json ContentType.

type CreateArtifactRuleResponse

type CreateArtifactRuleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseCreateArtifactRuleResponse

func ParseCreateArtifactRuleResponse(rsp *http.Response) (*CreateArtifactRuleResponse, error)

ParseCreateArtifactRuleResponse parses an HTTP response from a CreateArtifactRuleWithResponse call

func (CreateArtifactRuleResponse) Status

Status returns HTTPResponse.Status

func (CreateArtifactRuleResponse) StatusCode

func (r CreateArtifactRuleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateArtifactVersionParams

type CreateArtifactVersionParams struct {

	// This header parameter can be used to indicate the type of the artifact being added. Possible values include:
	// * Avro (`AVRO`)
	// * Protobuf (`PROTOBUF`)
	// * Protobuf File Descriptor (`PROTOBUF_FD`)
	// * JSON Schema (`JSON`)
	// * Kafka Connect (`KCONNECT`)
	// * OpenAPI (`OPENAPI`)
	// * AsyncAPI (`ASYNCAPI`)
	// * GraphQL (`GRAPHQL`)
	// * Web Services Description Language (`WSDL`)
	// * XML Schema (`XSD`)
	XRegistryArtifactType *string `json:"X-Registry-ArtifactType,omitempty"`
}

CreateArtifactVersionParams defines parameters for CreateArtifactVersion.

type CreateArtifactVersionResponse

type CreateArtifactVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VersionMetaData
	JSON404      *Error
	JSON409      *Error
	JSON500      *Error
}

func ParseCreateArtifactVersionResponse

func ParseCreateArtifactVersionResponse(rsp *http.Response) (*CreateArtifactVersionResponse, error)

ParseCreateArtifactVersionResponse parses an HTTP response from a CreateArtifactVersionWithResponse call

func (CreateArtifactVersionResponse) Status

Status returns HTTPResponse.Status

func (CreateArtifactVersionResponse) StatusCode

func (r CreateArtifactVersionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateGlobalRuleJSONBody

type CreateGlobalRuleJSONBody Rule

CreateGlobalRuleJSONBody defines parameters for CreateGlobalRule.

type CreateGlobalRuleJSONRequestBody

type CreateGlobalRuleJSONRequestBody CreateGlobalRuleJSONBody

CreateGlobalRuleJSONRequestBody defines body for CreateGlobalRule for application/json ContentType.

type CreateGlobalRuleResponse

type CreateGlobalRuleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON409      *Error
	JSON500      *Error
}

func ParseCreateGlobalRuleResponse

func ParseCreateGlobalRuleResponse(rsp *http.Response) (*CreateGlobalRuleResponse, error)

ParseCreateGlobalRuleResponse parses an HTTP response from a CreateGlobalRuleWithResponse call

func (CreateGlobalRuleResponse) Status

func (r CreateGlobalRuleResponse) Status() string

Status returns HTTPResponse.Status

func (CreateGlobalRuleResponse) StatusCode

func (r CreateGlobalRuleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteAllGlobalRulesResponse

type DeleteAllGlobalRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Error
}

func ParseDeleteAllGlobalRulesResponse

func ParseDeleteAllGlobalRulesResponse(rsp *http.Response) (*DeleteAllGlobalRulesResponse, error)

ParseDeleteAllGlobalRulesResponse parses an HTTP response from a DeleteAllGlobalRulesWithResponse call

func (DeleteAllGlobalRulesResponse) Status

Status returns HTTPResponse.Status

func (DeleteAllGlobalRulesResponse) StatusCode

func (r DeleteAllGlobalRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteArtifactResponse

type DeleteArtifactResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *Error
	JSON500      *Error
}

func ParseDeleteArtifactResponse

func ParseDeleteArtifactResponse(rsp *http.Response) (*DeleteArtifactResponse, error)

ParseDeleteArtifactResponse parses an HTTP response from a DeleteArtifactWithResponse call

func (DeleteArtifactResponse) Status

func (r DeleteArtifactResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteArtifactResponse) StatusCode

func (r DeleteArtifactResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteArtifactRuleResponse

type DeleteArtifactRuleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *Error
	JSON500      *Error
}

func ParseDeleteArtifactRuleResponse

func ParseDeleteArtifactRuleResponse(rsp *http.Response) (*DeleteArtifactRuleResponse, error)

ParseDeleteArtifactRuleResponse parses an HTTP response from a DeleteArtifactRuleWithResponse call

func (DeleteArtifactRuleResponse) Status

Status returns HTTPResponse.Status

func (DeleteArtifactRuleResponse) StatusCode

func (r DeleteArtifactRuleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteArtifactRulesResponse

type DeleteArtifactRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *Error
	JSON500      *Error
}

func ParseDeleteArtifactRulesResponse

func ParseDeleteArtifactRulesResponse(rsp *http.Response) (*DeleteArtifactRulesResponse, error)

ParseDeleteArtifactRulesResponse parses an HTTP response from a DeleteArtifactRulesWithResponse call

func (DeleteArtifactRulesResponse) Status

Status returns HTTPResponse.Status

func (DeleteArtifactRulesResponse) StatusCode

func (r DeleteArtifactRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteArtifactVersionMetaDataResponse

type DeleteArtifactVersionMetaDataResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *Error
	JSON500      *Error
}

func ParseDeleteArtifactVersionMetaDataResponse

func ParseDeleteArtifactVersionMetaDataResponse(rsp *http.Response) (*DeleteArtifactVersionMetaDataResponse, error)

ParseDeleteArtifactVersionMetaDataResponse parses an HTTP response from a DeleteArtifactVersionMetaDataWithResponse call

func (DeleteArtifactVersionMetaDataResponse) Status

Status returns HTTPResponse.Status

func (DeleteArtifactVersionMetaDataResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteGlobalRuleResponse

type DeleteGlobalRuleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *Error
	JSON500      *Error
}

func ParseDeleteGlobalRuleResponse

func ParseDeleteGlobalRuleResponse(rsp *http.Response) (*DeleteGlobalRuleResponse, error)

ParseDeleteGlobalRuleResponse parses an HTTP response from a DeleteGlobalRuleWithResponse call

func (DeleteGlobalRuleResponse) Status

func (r DeleteGlobalRuleResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteGlobalRuleResponse) StatusCode

func (r DeleteGlobalRuleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EditableMetaData

type EditableMetaData struct {
	Description *string   `json:"description,omitempty"`
	Labels      *[]string `json:"labels,omitempty"`
	Name        *string   `json:"name,omitempty"`

	// User-defined name-value pairs. Name and value must be strings.
	Properties *Properties `json:"properties,omitempty"`
}

EditableMetaData defines model for EditableMetaData.

type Error

type Error struct {

	// Full details about the error.  This might contain a server stack trace, for example.
	Detail *string `json:"detail,omitempty"`

	// The server-side error code.
	ErrorCode *int32 `json:"error_code,omitempty"`

	// The short error message.
	Message *string `json:"message,omitempty"`
}

Error defines model for Error.

type GetArtifactByGlobalIdResponse

type GetArtifactByGlobalIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetArtifactByGlobalIdResponse

func ParseGetArtifactByGlobalIdResponse(rsp *http.Response) (*GetArtifactByGlobalIdResponse, error)

ParseGetArtifactByGlobalIdResponse parses an HTTP response from a GetArtifactByGlobalIdWithResponse call

func (GetArtifactByGlobalIdResponse) Status

Status returns HTTPResponse.Status

func (GetArtifactByGlobalIdResponse) StatusCode

func (r GetArtifactByGlobalIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetArtifactMetaDataByContentJSONBody

type GetArtifactMetaDataByContentJSONBody interface{}

GetArtifactMetaDataByContentJSONBody defines parameters for GetArtifactMetaDataByContent.

type GetArtifactMetaDataByContentJSONRequestBody

type GetArtifactMetaDataByContentJSONRequestBody GetArtifactMetaDataByContentJSONBody

GetArtifactMetaDataByContentJSONRequestBody defines body for GetArtifactMetaDataByContent for application/json ContentType.

type GetArtifactMetaDataByContentResponse

type GetArtifactMetaDataByContentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ArtifactMetaData
	JSON404      *Error
	JSON500      *Error
}

func ParseGetArtifactMetaDataByContentResponse

func ParseGetArtifactMetaDataByContentResponse(rsp *http.Response) (*GetArtifactMetaDataByContentResponse, error)

ParseGetArtifactMetaDataByContentResponse parses an HTTP response from a GetArtifactMetaDataByContentWithResponse call

func (GetArtifactMetaDataByContentResponse) Status

Status returns HTTPResponse.Status

func (GetArtifactMetaDataByContentResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetArtifactMetaDataByGlobalIdResponse

type GetArtifactMetaDataByGlobalIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ArtifactMetaData
	JSON404      *Error
	JSON500      *Error
}

func ParseGetArtifactMetaDataByGlobalIdResponse

func ParseGetArtifactMetaDataByGlobalIdResponse(rsp *http.Response) (*GetArtifactMetaDataByGlobalIdResponse, error)

ParseGetArtifactMetaDataByGlobalIdResponse parses an HTTP response from a GetArtifactMetaDataByGlobalIdWithResponse call

func (GetArtifactMetaDataByGlobalIdResponse) Status

Status returns HTTPResponse.Status

func (GetArtifactMetaDataByGlobalIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetArtifactMetaDataResponse

type GetArtifactMetaDataResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ArtifactMetaData
	JSON404      *Error
	JSON500      *Error
}

func ParseGetArtifactMetaDataResponse

func ParseGetArtifactMetaDataResponse(rsp *http.Response) (*GetArtifactMetaDataResponse, error)

ParseGetArtifactMetaDataResponse parses an HTTP response from a GetArtifactMetaDataWithResponse call

func (GetArtifactMetaDataResponse) Status

Status returns HTTPResponse.Status

func (GetArtifactMetaDataResponse) StatusCode

func (r GetArtifactMetaDataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetArtifactRuleConfigResponse

type GetArtifactRuleConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Rule
	JSON404      *Error
	JSON500      *Error
}

func ParseGetArtifactRuleConfigResponse

func ParseGetArtifactRuleConfigResponse(rsp *http.Response) (*GetArtifactRuleConfigResponse, error)

ParseGetArtifactRuleConfigResponse parses an HTTP response from a GetArtifactRuleConfigWithResponse call

func (GetArtifactRuleConfigResponse) Status

Status returns HTTPResponse.Status

func (GetArtifactRuleConfigResponse) StatusCode

func (r GetArtifactRuleConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetArtifactVersionMetaDataResponse

type GetArtifactVersionMetaDataResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VersionMetaData
	JSON404      *Error
	JSON500      *Error
}

func ParseGetArtifactVersionMetaDataResponse

func ParseGetArtifactVersionMetaDataResponse(rsp *http.Response) (*GetArtifactVersionMetaDataResponse, error)

ParseGetArtifactVersionMetaDataResponse parses an HTTP response from a GetArtifactVersionMetaDataWithResponse call

func (GetArtifactVersionMetaDataResponse) Status

Status returns HTTPResponse.Status

func (GetArtifactVersionMetaDataResponse) StatusCode

func (r GetArtifactVersionMetaDataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetArtifactVersionResponse

type GetArtifactVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *Error
	JSON500      *Error
}

func ParseGetArtifactVersionResponse

func ParseGetArtifactVersionResponse(rsp *http.Response) (*GetArtifactVersionResponse, error)

ParseGetArtifactVersionResponse parses an HTTP response from a GetArtifactVersionWithResponse call

func (GetArtifactVersionResponse) Status

Status returns HTTPResponse.Status

func (GetArtifactVersionResponse) StatusCode

func (r GetArtifactVersionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetGlobalRuleConfigResponse

type GetGlobalRuleConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Rule
	JSON404      *Error
	JSON500      *Error
}

func ParseGetGlobalRuleConfigResponse

func ParseGetGlobalRuleConfigResponse(rsp *http.Response) (*GetGlobalRuleConfigResponse, error)

ParseGetGlobalRuleConfigResponse parses an HTTP response from a GetGlobalRuleConfigWithResponse call

func (GetGlobalRuleConfigResponse) Status

Status returns HTTPResponse.Status

func (GetGlobalRuleConfigResponse) StatusCode

func (r GetGlobalRuleConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLatestArtifactResponse

type GetLatestArtifactResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *Error
	JSON500      *Error
}

func ParseGetLatestArtifactResponse

func ParseGetLatestArtifactResponse(rsp *http.Response) (*GetLatestArtifactResponse, error)

ParseGetLatestArtifactResponse parses an HTTP response from a GetLatestArtifactWithResponse call

func (GetLatestArtifactResponse) Status

func (r GetLatestArtifactResponse) Status() string

Status returns HTTPResponse.Status

func (GetLatestArtifactResponse) StatusCode

func (r GetLatestArtifactResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListArtifactRulesResponse

type ListArtifactRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]RuleType
	JSON404      *Error
	JSON500      *Error
}

func ParseListArtifactRulesResponse

func ParseListArtifactRulesResponse(rsp *http.Response) (*ListArtifactRulesResponse, error)

ParseListArtifactRulesResponse parses an HTTP response from a ListArtifactRulesWithResponse call

func (ListArtifactRulesResponse) Status

func (r ListArtifactRulesResponse) Status() string

Status returns HTTPResponse.Status

func (ListArtifactRulesResponse) StatusCode

func (r ListArtifactRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListArtifactVersionsResponse

type ListArtifactVersionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]int64
	JSON404      *Error
	JSON500      *Error
}

func ParseListArtifactVersionsResponse

func ParseListArtifactVersionsResponse(rsp *http.Response) (*ListArtifactVersionsResponse, error)

ParseListArtifactVersionsResponse parses an HTTP response from a ListArtifactVersionsWithResponse call

func (ListArtifactVersionsResponse) Status

Status returns HTTPResponse.Status

func (ListArtifactVersionsResponse) StatusCode

func (r ListArtifactVersionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListArtifactsResponse

type ListArtifactsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]string
	JSON500      *Error
}

func ParseListArtifactsResponse

func ParseListArtifactsResponse(rsp *http.Response) (*ListArtifactsResponse, error)

ParseListArtifactsResponse parses an HTTP response from a ListArtifactsWithResponse call

func (ListArtifactsResponse) Status

func (r ListArtifactsResponse) Status() string

Status returns HTTPResponse.Status

func (ListArtifactsResponse) StatusCode

func (r ListArtifactsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListGlobalRulesResponse

type ListGlobalRulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]RuleType
	JSON500      *Error
}

func ParseListGlobalRulesResponse

func ParseListGlobalRulesResponse(rsp *http.Response) (*ListGlobalRulesResponse, error)

ParseListGlobalRulesResponse parses an HTTP response from a ListGlobalRulesWithResponse call

func (ListGlobalRulesResponse) Status

func (r ListGlobalRulesResponse) Status() string

Status returns HTTPResponse.Status

func (ListGlobalRulesResponse) StatusCode

func (r ListGlobalRulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type NotFound

type NotFound Error

NotFound defines model for NotFound.

type Properties

type Properties struct {
	AdditionalProperties map[string]string `json:"-"`
}

Properties defines model for Properties.

func (Properties) Get

func (a Properties) Get(fieldName string) (value string, found bool)

Getter for additional properties for Properties. Returns the specified element and whether it was found

func (Properties) MarshalJSON

func (a Properties) MarshalJSON() ([]byte, error)

Override default JSON handling for Properties to handle AdditionalProperties

func (*Properties) Set

func (a *Properties) Set(fieldName string, value string)

Setter for additional properties for Properties

func (*Properties) UnmarshalJSON

func (a *Properties) UnmarshalJSON(b []byte) error

Override default JSON handling for Properties to handle AdditionalProperties

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type Rule

type Rule struct {
	Config string    `json:"config"`
	Type   *RuleType `json:"type,omitempty"`
}

Rule defines model for Rule.

type RuleType

type RuleType string

RuleType defines model for RuleType.

const (
	RuleType_COMPATIBILITY RuleType = "COMPATIBILITY"
	RuleType_VALIDITY      RuleType = "VALIDITY"
)

List of RuleType

type SearchArtifactsParams

type SearchArtifactsParams struct {

	// The text to search.
	Search *string `json:"search,omitempty"`

	// The number of artifacts to skip before starting to collect the result set.
	Offset int `json:"offset"`

	// The number of artifacts to return.
	Limit int `json:"limit"`

	// What fields to search.
	Over *string `json:"over,omitempty"`

	// Sort order, ascending or descending.
	Order *string `json:"order,omitempty"`
}

SearchArtifactsParams defines parameters for SearchArtifacts.

type SearchArtifactsResponse

type SearchArtifactsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ArtifactSearchResults
	JSON500      *Error
}

func ParseSearchArtifactsResponse

func ParseSearchArtifactsResponse(rsp *http.Response) (*SearchArtifactsResponse, error)

ParseSearchArtifactsResponse parses an HTTP response from a SearchArtifactsWithResponse call

func (SearchArtifactsResponse) Status

func (r SearchArtifactsResponse) Status() string

Status returns HTTPResponse.Status

func (SearchArtifactsResponse) StatusCode

func (r SearchArtifactsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SearchVersionsParams

type SearchVersionsParams struct {

	// The number of versions to skip before starting to collect the result set.
	Offset int `json:"offset"`

	// The number of versions to return.
	Limit int `json:"limit"`
}

SearchVersionsParams defines parameters for SearchVersions.

type SearchVersionsResponse

type SearchVersionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VersionSearchResults
	JSON404      *Error
	JSON500      *Error
}

func ParseSearchVersionsResponse

func ParseSearchVersionsResponse(rsp *http.Response) (*SearchVersionsResponse, error)

ParseSearchVersionsResponse parses an HTTP response from a SearchVersionsWithResponse call

func (SearchVersionsResponse) Status

func (r SearchVersionsResponse) Status() string

Status returns HTTPResponse.Status

func (SearchVersionsResponse) StatusCode

func (r SearchVersionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SearchedArtifact

type SearchedArtifact struct {
	CreatedBy   string    `json:"createdBy"`
	CreatedOn   int       `json:"createdOn"`
	Description *string   `json:"description,omitempty"`
	Id          string    `json:"id"`
	Labels      *[]string `json:"labels,omitempty"`
	ModifiedBy  *string   `json:"modifiedBy,omitempty"`
	ModifiedOn  *int      `json:"modifiedOn,omitempty"`
	Name        *string   `json:"name,omitempty"`

	// Describes the state of an artifact or artifact version.  The following states
	// are possible:
	//
	// * ENABLED
	// * DISABLED
	// * DEPRECATED
	State ArtifactState `json:"state"`
	Type  ArtifactType  `json:"type"`
}

SearchedArtifact defines model for SearchedArtifact.

type SearchedVersion

type SearchedVersion struct {
	CreatedBy   string    `json:"createdBy"`
	CreatedOn   int       `json:"createdOn"`
	Description *string   `json:"description,omitempty"`
	GlobalId    int64     `json:"globalId"`
	Labels      *[]string `json:"labels,omitempty"`
	Name        *string   `json:"name,omitempty"`

	// Describes the state of an artifact or artifact version.  The following states
	// are possible:
	//
	// * ENABLED
	// * DISABLED
	// * DEPRECATED
	State   ArtifactState `json:"state"`
	Type    ArtifactType  `json:"type"`
	Version int32         `json:"version"`
}

SearchedVersion defines model for SearchedVersion.

type ServerError

type ServerError Error

ServerError defines model for ServerError.

type TestUpdateArtifactParams

type TestUpdateArtifactParams struct {

	// This header parameter can be used to indicate the type of the artifact being added.  Possible values include:
	// * Avro (`AVRO`)
	// * Protobuf (`PROTOBUF`)
	// * Protobuf File Descriptor (`PROTOBUF_FD`)
	// * JSON Schema (`JSON`)
	// * Kafka Connect (`KCONNECT`)
	// * OpenAPI (`OPENAPI`)
	// * AsyncAPI (`ASYNCAPI`)
	// * GraphQL (`GRAPHQL`)
	// * Web Services Description Language (`WSDL`)
	// * XML Schema (`XSD`)
	XRegistryArtifactType *string `json:"X-Registry-ArtifactType,omitempty"`
}

TestUpdateArtifactParams defines parameters for TestUpdateArtifact.

type TestUpdateArtifactResponse

type TestUpdateArtifactResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *Error
	JSON409      *Error
	JSON500      *Error
}

func ParseTestUpdateArtifactResponse

func ParseTestUpdateArtifactResponse(rsp *http.Response) (*TestUpdateArtifactResponse, error)

ParseTestUpdateArtifactResponse parses an HTTP response from a TestUpdateArtifactWithResponse call

func (TestUpdateArtifactResponse) Status

Status returns HTTPResponse.Status

func (TestUpdateArtifactResponse) StatusCode

func (r TestUpdateArtifactResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateArtifactMetaDataResponse

type UpdateArtifactMetaDataResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *Error
	JSON500      *Error
}

func ParseUpdateArtifactMetaDataResponse

func ParseUpdateArtifactMetaDataResponse(rsp *http.Response) (*UpdateArtifactMetaDataResponse, error)

ParseUpdateArtifactMetaDataResponse parses an HTTP response from a UpdateArtifactMetaDataWithResponse call

func (UpdateArtifactMetaDataResponse) Status

Status returns HTTPResponse.Status

func (UpdateArtifactMetaDataResponse) StatusCode

func (r UpdateArtifactMetaDataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateArtifactParams

type UpdateArtifactParams struct {

	// Specifies the type of the artifact being added.  Possible values include:
	//
	// * Avro (`AVRO`)
	// * Protobuf (`PROTOBUF`)
	// * Protobuf File Descriptor (`PROTOBUF_FD`)
	// * JSON Schema (`JSON`)
	// * Kafka Connect (`KCONNECT`)
	// * OpenAPI (`OPENAPI`)
	// * AsyncAPI (`ASYNCAPI`)
	// * GraphQL (`GRAPHQL`)
	// * Web Services Description Language (`WSDL`)
	// * XML Schema (`XSD`)
	XRegistryArtifactType *string `json:"X-Registry-ArtifactType,omitempty"`
}

UpdateArtifactParams defines parameters for UpdateArtifact.

type UpdateArtifactResponse

type UpdateArtifactResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ArtifactMetaData
	JSON404      *Error
	JSON409      *Error
	JSON500      *Error
}

func ParseUpdateArtifactResponse

func ParseUpdateArtifactResponse(rsp *http.Response) (*UpdateArtifactResponse, error)

ParseUpdateArtifactResponse parses an HTTP response from a UpdateArtifactWithResponse call

func (UpdateArtifactResponse) Status

func (r UpdateArtifactResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateArtifactResponse) StatusCode

func (r UpdateArtifactResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateArtifactRuleConfigJSONBody

type UpdateArtifactRuleConfigJSONBody Rule

UpdateArtifactRuleConfigJSONBody defines parameters for UpdateArtifactRuleConfig.

type UpdateArtifactRuleConfigJSONRequestBody

type UpdateArtifactRuleConfigJSONRequestBody UpdateArtifactRuleConfigJSONBody

UpdateArtifactRuleConfigJSONRequestBody defines body for UpdateArtifactRuleConfig for application/json ContentType.

type UpdateArtifactRuleConfigResponse

type UpdateArtifactRuleConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Rule
	JSON404      *Error
	JSON500      *Error
}

func ParseUpdateArtifactRuleConfigResponse

func ParseUpdateArtifactRuleConfigResponse(rsp *http.Response) (*UpdateArtifactRuleConfigResponse, error)

ParseUpdateArtifactRuleConfigResponse parses an HTTP response from a UpdateArtifactRuleConfigWithResponse call

func (UpdateArtifactRuleConfigResponse) Status

Status returns HTTPResponse.Status

func (UpdateArtifactRuleConfigResponse) StatusCode

func (r UpdateArtifactRuleConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateArtifactStateJSONBody

type UpdateArtifactStateJSONBody UpdateState

UpdateArtifactStateJSONBody defines parameters for UpdateArtifactState.

type UpdateArtifactStateJSONRequestBody

type UpdateArtifactStateJSONRequestBody UpdateArtifactStateJSONBody

UpdateArtifactStateJSONRequestBody defines body for UpdateArtifactState for application/json ContentType.

type UpdateArtifactStateResponse

type UpdateArtifactStateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseUpdateArtifactStateResponse

func ParseUpdateArtifactStateResponse(rsp *http.Response) (*UpdateArtifactStateResponse, error)

ParseUpdateArtifactStateResponse parses an HTTP response from a UpdateArtifactStateWithResponse call

func (UpdateArtifactStateResponse) Status

Status returns HTTPResponse.Status

func (UpdateArtifactStateResponse) StatusCode

func (r UpdateArtifactStateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateArtifactVersionMetaDataJSONBody

type UpdateArtifactVersionMetaDataJSONBody EditableMetaData

UpdateArtifactVersionMetaDataJSONBody defines parameters for UpdateArtifactVersionMetaData.

type UpdateArtifactVersionMetaDataJSONRequestBody

type UpdateArtifactVersionMetaDataJSONRequestBody UpdateArtifactVersionMetaDataJSONBody

UpdateArtifactVersionMetaDataJSONRequestBody defines body for UpdateArtifactVersionMetaData for application/json ContentType.

type UpdateArtifactVersionMetaDataResponse

type UpdateArtifactVersionMetaDataResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *Error
	JSON500      *Error
}

func ParseUpdateArtifactVersionMetaDataResponse

func ParseUpdateArtifactVersionMetaDataResponse(rsp *http.Response) (*UpdateArtifactVersionMetaDataResponse, error)

ParseUpdateArtifactVersionMetaDataResponse parses an HTTP response from a UpdateArtifactVersionMetaDataWithResponse call

func (UpdateArtifactVersionMetaDataResponse) Status

Status returns HTTPResponse.Status

func (UpdateArtifactVersionMetaDataResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UpdateArtifactVersionStateJSONBody

type UpdateArtifactVersionStateJSONBody UpdateState

UpdateArtifactVersionStateJSONBody defines parameters for UpdateArtifactVersionState.

type UpdateArtifactVersionStateJSONRequestBody

type UpdateArtifactVersionStateJSONRequestBody UpdateArtifactVersionStateJSONBody

UpdateArtifactVersionStateJSONRequestBody defines body for UpdateArtifactVersionState for application/json ContentType.

type UpdateArtifactVersionStateResponse

type UpdateArtifactVersionStateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseUpdateArtifactVersionStateResponse

func ParseUpdateArtifactVersionStateResponse(rsp *http.Response) (*UpdateArtifactVersionStateResponse, error)

ParseUpdateArtifactVersionStateResponse parses an HTTP response from a UpdateArtifactVersionStateWithResponse call

func (UpdateArtifactVersionStateResponse) Status

Status returns HTTPResponse.Status

func (UpdateArtifactVersionStateResponse) StatusCode

func (r UpdateArtifactVersionStateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateGlobalRuleConfigJSONBody

type UpdateGlobalRuleConfigJSONBody Rule

UpdateGlobalRuleConfigJSONBody defines parameters for UpdateGlobalRuleConfig.

type UpdateGlobalRuleConfigJSONRequestBody

type UpdateGlobalRuleConfigJSONRequestBody UpdateGlobalRuleConfigJSONBody

UpdateGlobalRuleConfigJSONRequestBody defines body for UpdateGlobalRuleConfig for application/json ContentType.

type UpdateGlobalRuleConfigResponse

type UpdateGlobalRuleConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Rule
	JSON404      *Error
	JSON500      *Error
}

func ParseUpdateGlobalRuleConfigResponse

func ParseUpdateGlobalRuleConfigResponse(rsp *http.Response) (*UpdateGlobalRuleConfigResponse, error)

ParseUpdateGlobalRuleConfigResponse parses an HTTP response from a UpdateGlobalRuleConfigWithResponse call

func (UpdateGlobalRuleConfigResponse) Status

Status returns HTTPResponse.Status

func (UpdateGlobalRuleConfigResponse) StatusCode

func (r UpdateGlobalRuleConfigResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateState

type UpdateState struct {

	// Describes the state of an artifact or artifact version.  The following states
	// are possible:
	//
	// * ENABLED
	// * DISABLED
	// * DEPRECATED
	State ArtifactState `json:"state"`
}

UpdateState defines model for UpdateState.

type VersionMetaData

type VersionMetaData struct {
	CreatedBy   string  `json:"createdBy"`
	CreatedOn   int     `json:"createdOn"`
	Description *string `json:"description,omitempty"`
	GlobalId    int64   `json:"globalId"`

	// The artifact id.
	Id     string    `json:"id"`
	Labels *[]string `json:"labels,omitempty"`
	Name   *string   `json:"name,omitempty"`

	// User-defined name-value pairs. Name and value must be strings.
	Properties *Properties `json:"properties,omitempty"`

	// Describes the state of an artifact or artifact version.  The following states
	// are possible:
	//
	// * ENABLED
	// * DISABLED
	// * DEPRECATED
	State   *ArtifactState `json:"state,omitempty"`
	Type    ArtifactType   `json:"type"`
	Version int64          `json:"version"`
}

VersionMetaData defines model for VersionMetaData.

type VersionSearchResults

type VersionSearchResults struct {

	// The total number of artifacts that matched the search criteria.
	Count    int               `json:"count"`
	Versions []SearchedVersion `json:"versions"`
}

VersionSearchResults defines model for VersionSearchResults.

Jump to

Keyboard shortcuts

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