Documentation
      ¶
    
    
  
    
  
    Index ¶
- type ReleaseManagerAPI
 - func (o *ReleaseManagerAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
 - func (o *ReleaseManagerAPI) Authorizer() runtime.Authorizer
 - func (o *ReleaseManagerAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
 - func (o *ReleaseManagerAPI) Context() *middleware.Context
 - func (o *ReleaseManagerAPI) DefaultConsumes() string
 - func (o *ReleaseManagerAPI) DefaultProduces() string
 - func (o *ReleaseManagerAPI) Formats() strfmt.Registry
 - func (o *ReleaseManagerAPI) HandlerFor(method, path string) (http.Handler, bool)
 - func (o *ReleaseManagerAPI) Init()
 - func (o *ReleaseManagerAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
 - func (o *ReleaseManagerAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
 - func (o *ReleaseManagerAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
 - func (o *ReleaseManagerAPI) RegisterProducer(mediaType string, producer runtime.Producer)
 - func (o *ReleaseManagerAPI) Serve(builder middleware.Builder) http.Handler
 - func (o *ReleaseManagerAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
 - func (o *ReleaseManagerAPI) SetDefaultConsumes(mediaType string)
 - func (o *ReleaseManagerAPI) SetDefaultProduces(mediaType string)
 - func (o *ReleaseManagerAPI) SetSpec(spec *loads.Document)
 - func (o *ReleaseManagerAPI) Validate() error
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReleaseManagerAPI ¶
type ReleaseManagerAPI struct {
	Middleware func(middleware.Builder) http.Handler
	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implemention 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 implemention 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 implemention 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/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) Authorizer ¶ added in v0.3.0
func (o *ReleaseManagerAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*ReleaseManagerAPI) ConsumersFor ¶
func (o *ReleaseManagerAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types
func (*ReleaseManagerAPI) Context ¶ added in v0.3.0
func (o *ReleaseManagerAPI) Context() *middleware.Context
Context returns the middleware context for the release manager API
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) Init ¶ added in v0.3.0
func (o *ReleaseManagerAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*ReleaseManagerAPI) ProducersFor ¶
func (o *ReleaseManagerAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types
func (*ReleaseManagerAPI) RegisterConsumer ¶ added in v0.3.0
func (o *ReleaseManagerAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*ReleaseManagerAPI) RegisterFormat ¶
func (o *ReleaseManagerAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*ReleaseManagerAPI) RegisterProducer ¶ added in v0.3.0
func (o *ReleaseManagerAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
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) SetSpec ¶ added in v0.3.0
func (o *ReleaseManagerAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*ReleaseManagerAPI) Validate ¶
func (o *ReleaseManagerAPI) Validate() error
Validate validates the registrations in the ReleaseManagerAPI