Help us shape the future of Go! Take the 2026 Go Developer Survey

operations

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2016 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReleaseManagerAPI

type ReleaseManagerAPI struct {

	// JSONConsumer registers a consumer for a "application/release-manager.v1+json" mime type
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for a "application/release-manager.v1+json" mime type
	JSONProducer runtime.Producer

	// ProjectCreateProjectHandler sets the operation handler for the create project operation
	ProjectCreateProjectHandler project.CreateProjectHandler
	// VersionIncrementalIncrementalDeleteHandler sets the operation handler for the incremental delete operation
	VersionIncrementalIncrementalDeleteHandler version_incremental.IncrementalDeleteHandler
	// VersionIncrementalIncrementalGenerateHandler sets the operation handler for the incremental generate operation
	VersionIncrementalIncrementalGenerateHandler version_incremental.IncrementalGenerateHandler
	// VersionIncrementalIncrementalUpdateHandler sets the operation handler for the incremental update operation
	VersionIncrementalIncrementalUpdateHandler version_incremental.IncrementalUpdateHandler
	// ProjectListProjectsHandler sets the operation handler for the list projects operation
	ProjectListProjectsHandler project.ListProjectsHandler
	// ProjectReadProjectHandler sets the operation handler for the read project operation
	ProjectReadProjectHandler project.ReadProjectHandler
	// VersionSemanticSemverGenerateHandler sets the operation handler for the semver generate operation
	VersionSemanticSemverGenerateHandler version_semantic.SemverGenerateHandler
	// ProjectUpdateProjectHandler sets the operation handler for the update project operation
	ProjectUpdateProjectHandler project.UpdateProjectHandler

	// 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
}

ReleaseManagerAPI This application generate version for your software.

func NewReleaseManagerAPI

func NewReleaseManagerAPI(spec *loads.Document) *ReleaseManagerAPI

NewReleaseManagerAPI creates a new ReleaseManager instance

func (*ReleaseManagerAPI) AuthenticatorsFor

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

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*ReleaseManagerAPI) ConsumersFor

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

ConsumersFor gets the consumers for the specified media types

func (*ReleaseManagerAPI) DefaultConsumes

func (o *ReleaseManagerAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*ReleaseManagerAPI) DefaultProduces

func (o *ReleaseManagerAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*ReleaseManagerAPI) Formats

func (o *ReleaseManagerAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*ReleaseManagerAPI) HandlerFor

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

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

func (*ReleaseManagerAPI) ProducersFor

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

ProducersFor gets the producers for the specified media types

func (*ReleaseManagerAPI) RegisterFormat

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

RegisterFormat registers a custom format validator

func (*ReleaseManagerAPI) Serve

func (o *ReleaseManagerAPI) Serve(builder middleware.Builder) http.Handler

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

func (*ReleaseManagerAPI) ServeErrorFor

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

ServeErrorFor gets a error handler for a given operation id

func (*ReleaseManagerAPI) SetDefaultConsumes

func (o *ReleaseManagerAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*ReleaseManagerAPI) SetDefaultProduces

func (o *ReleaseManagerAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*ReleaseManagerAPI) Validate

func (o *ReleaseManagerAPI) Validate() error

Validate validates the registrations in the ReleaseManagerAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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