handler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(w http.ResponseWriter, r *http.Request, err error)

HandleError is called when the router has trouble parsong paths.

func MethodNotAllowed

func MethodNotAllowed(w http.ResponseWriter, r *http.Request)

MethodNotAllowed is called from the router when a method is not found for a path.

func NotFound

func NotFound(w http.ResponseWriter, r *http.Request)

NotFound is called from the router when a path is not found.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(client client.Client, namespace string, authenticator *authorization.Authenticator, options *Options) (*Handler, error)

func (*Handler) DeleteApiV1OrganizationsOrganizationGroupsGroupid added in v0.1.3

func (h *Handler) DeleteApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request, organization generated.OrganizationParameter, groupid generated.GroupidParameter)

func (*Handler) DeleteApiV1OrganizationsOrganizationProjectsProject added in v0.2.0

func (h *Handler) DeleteApiV1OrganizationsOrganizationProjectsProject(w http.ResponseWriter, r *http.Request, organization generated.OrganizationParameter, project generated.ProjectParameter)

func (*Handler) GetApiV1Organizations added in v0.1.3

func (h *Handler) GetApiV1Organizations(w http.ResponseWriter, r *http.Request)

func (*Handler) GetApiV1OrganizationsOrganizationAcl added in v0.1.23

func (h *Handler) GetApiV1OrganizationsOrganizationAcl(w http.ResponseWriter, r *http.Request, organization generated.OrganizationParameter)

func (*Handler) GetApiV1OrganizationsOrganizationGroups added in v0.1.3

func (h *Handler) GetApiV1OrganizationsOrganizationGroups(w http.ResponseWriter, r *http.Request, organization generated.OrganizationParameter)

func (*Handler) GetApiV1OrganizationsOrganizationGroupsGroupid added in v0.1.20

func (h *Handler) GetApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request, organization generated.OrganizationParameter, groupid generated.GroupidParameter)

func (*Handler) GetApiV1OrganizationsOrganizationOauth2Providers added in v0.1.18

func (h *Handler) GetApiV1OrganizationsOrganizationOauth2Providers(w http.ResponseWriter, r *http.Request, organization generated.OrganizationParameter)

func (*Handler) GetApiV1OrganizationsOrganizationProjects added in v0.2.0

func (h *Handler) GetApiV1OrganizationsOrganizationProjects(w http.ResponseWriter, r *http.Request, organization generated.OrganizationParameter)

func (*Handler) GetApiV1OrganizationsOrganizationRoles added in v0.1.24

func (h *Handler) GetApiV1OrganizationsOrganizationRoles(w http.ResponseWriter, r *http.Request, organization generated.OrganizationParameter)

func (*Handler) GetOauth2V2Authorization

func (h *Handler) GetOauth2V2Authorization(w http.ResponseWriter, r *http.Request)

func (*Handler) GetOauth2V2Jwks

func (h *Handler) GetOauth2V2Jwks(w http.ResponseWriter, r *http.Request)

func (*Handler) GetOauth2V2Userinfo added in v0.1.14

func (h *Handler) GetOauth2V2Userinfo(w http.ResponseWriter, r *http.Request)

func (*Handler) GetOidcCallback

func (h *Handler) GetOidcCallback(w http.ResponseWriter, r *http.Request)

func (*Handler) GetWellKnownOpenidConfiguration

func (h *Handler) GetWellKnownOpenidConfiguration(w http.ResponseWriter, r *http.Request)

func (*Handler) PostApiV1Organizations added in v0.1.13

func (h *Handler) PostApiV1Organizations(w http.ResponseWriter, r *http.Request)

func (*Handler) PostApiV1OrganizationsOrganizationGroups added in v0.1.3

func (h *Handler) PostApiV1OrganizationsOrganizationGroups(w http.ResponseWriter, r *http.Request, organization generated.OrganizationParameter)

func (*Handler) PostApiV1OrganizationsOrganizationProjects added in v0.2.0

func (h *Handler) PostApiV1OrganizationsOrganizationProjects(w http.ResponseWriter, r *http.Request, organization generated.OrganizationParameter)

func (*Handler) PostOauth2V2Login

func (h *Handler) PostOauth2V2Login(w http.ResponseWriter, r *http.Request)

func (*Handler) PostOauth2V2Token

func (h *Handler) PostOauth2V2Token(w http.ResponseWriter, r *http.Request)

func (*Handler) PutApiV1OrganizationsOrganization added in v0.1.3

func (h *Handler) PutApiV1OrganizationsOrganization(w http.ResponseWriter, r *http.Request, organization generated.OrganizationParameter)

func (*Handler) PutApiV1OrganizationsOrganizationGroupsGroupid added in v0.1.3

func (h *Handler) PutApiV1OrganizationsOrganizationGroupsGroupid(w http.ResponseWriter, r *http.Request, organization generated.OrganizationParameter, groupid generated.GroupidParameter)

type Options

type Options struct {
	// Host is the hostname of the service, this will be used as the oauth2
	// issuer etc.
	Host string

	// cacheMaxAge defines the max age for cachable items e.g. images and
	// flavors don't change all that often.
	CacheMaxAge time.Duration
}

Options defines configurable handler options.

func (*Options) AddFlags

func (o *Options) AddFlags(f *pflag.FlagSet)

AddFlags adds the options flags to the given flag set.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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