operations

package
v0.0.0-...-9b0980c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KathraCatalogmanagerHelmAPI

type KathraCatalogmanagerHelmAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator
	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator
	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for a "application/json" mime type
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for a "application/json" mime type
	JSONProducer runtime.Producer

	// ReadCatalogEntriesGetAllCatalogEntryPackagesHandler sets the operation handler for the get all catalog entry packages operation
	ReadCatalogEntriesGetAllCatalogEntryPackagesHandler read_catalog_entries.GetAllCatalogEntryPackagesHandler
	// ReadCatalogEntriesGetCatalogEntryFromVersionHandler sets the operation handler for the get catalog entry from version operation
	ReadCatalogEntriesGetCatalogEntryFromVersionHandler read_catalog_entries.GetCatalogEntryFromVersionHandler
	// ReadCatalogEntriesGetCatalogEntryPackageHandler sets the operation handler for the get catalog entry package operation
	ReadCatalogEntriesGetCatalogEntryPackageHandler read_catalog_entries.GetCatalogEntryPackageHandler
	// ReadCatalogEntriesGetCatalogEntryPackageVersionsHandler sets the operation handler for the get catalog entry package versions operation
	ReadCatalogEntriesGetCatalogEntryPackageVersionsHandler read_catalog_entries.GetCatalogEntryPackageVersionsHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

KathraCatalogmanagerHelmAPI KATHRA Catalog Management API permetting :

  • Generate source's packages from templates

  • Insert catalog entry from template

  • Insert catalog entry from file

  • Insert catalog entry from source repository

  • Read catalog entries from catalog

func NewKathraCatalogmanagerHelmAPI

func NewKathraCatalogmanagerHelmAPI(spec *loads.Document) *KathraCatalogmanagerHelmAPI

NewKathraCatalogmanagerHelmAPI creates a new KathraCatalogmanagerHelm instance

func (*KathraCatalogmanagerHelmAPI) AuthenticatorsFor

func (o *KathraCatalogmanagerHelmAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*KathraCatalogmanagerHelmAPI) Authorizer

Authorizer returns the registered authorizer

func (*KathraCatalogmanagerHelmAPI) ConsumersFor

func (o *KathraCatalogmanagerHelmAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types

func (*KathraCatalogmanagerHelmAPI) Context

Context returns the middleware context for the kathra catalogmanager helm API

func (*KathraCatalogmanagerHelmAPI) DefaultConsumes

func (o *KathraCatalogmanagerHelmAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*KathraCatalogmanagerHelmAPI) DefaultProduces

func (o *KathraCatalogmanagerHelmAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*KathraCatalogmanagerHelmAPI) Formats

Formats returns the registered string formats

func (*KathraCatalogmanagerHelmAPI) HandlerFor

func (o *KathraCatalogmanagerHelmAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*KathraCatalogmanagerHelmAPI) Init

func (o *KathraCatalogmanagerHelmAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*KathraCatalogmanagerHelmAPI) ProducersFor

func (o *KathraCatalogmanagerHelmAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types

func (*KathraCatalogmanagerHelmAPI) RegisterConsumer

func (o *KathraCatalogmanagerHelmAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*KathraCatalogmanagerHelmAPI) RegisterFormat

func (o *KathraCatalogmanagerHelmAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*KathraCatalogmanagerHelmAPI) RegisterProducer

func (o *KathraCatalogmanagerHelmAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*KathraCatalogmanagerHelmAPI) Serve

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*KathraCatalogmanagerHelmAPI) ServeErrorFor

func (o *KathraCatalogmanagerHelmAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*KathraCatalogmanagerHelmAPI) SetDefaultConsumes

func (o *KathraCatalogmanagerHelmAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*KathraCatalogmanagerHelmAPI) SetDefaultProduces

func (o *KathraCatalogmanagerHelmAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*KathraCatalogmanagerHelmAPI) SetSpec

func (o *KathraCatalogmanagerHelmAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*KathraCatalogmanagerHelmAPI) Validate

func (o *KathraCatalogmanagerHelmAPI) Validate() error

Validate validates the registrations in the KathraCatalogmanagerHelmAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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