handler

package
v0.2.35 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 18 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, issuer *jose.JWTIssuer, oauth2 *oauth2.Authenticator, rbac *rbac.RBAC, options *Options) (*Handler, error)

func (*Handler) DeleteApiV1OrganizationsOrganizationIDGroupsGroupid added in v0.2.6

func (h *Handler) DeleteApiV1OrganizationsOrganizationIDGroupsGroupid(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter, groupID openapi.GroupidParameter)

func (*Handler) DeleteApiV1OrganizationsOrganizationIDOauth2providersProviderID added in v0.2.6

func (h *Handler) DeleteApiV1OrganizationsOrganizationIDOauth2providersProviderID(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter, providerID openapi.Oauth2ProvderIDParameter)

func (*Handler) DeleteApiV1OrganizationsOrganizationIDProjectsProjectID added in v0.2.6

func (h *Handler) DeleteApiV1OrganizationsOrganizationIDProjectsProjectID(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter, projectID openapi.ProjectIDParameter)

func (*Handler) GetApiV1Oauth2providers added in v0.2.5

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

func (*Handler) GetApiV1Organizations added in v0.1.3

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

func (*Handler) GetApiV1OrganizationsOrganizationID added in v0.2.6

func (h *Handler) GetApiV1OrganizationsOrganizationID(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter)

func (*Handler) GetApiV1OrganizationsOrganizationIDAcl added in v0.2.6

func (h *Handler) GetApiV1OrganizationsOrganizationIDAcl(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter)

func (*Handler) GetApiV1OrganizationsOrganizationIDAvailableGroups added in v0.2.6

func (h *Handler) GetApiV1OrganizationsOrganizationIDAvailableGroups(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter)

func (*Handler) GetApiV1OrganizationsOrganizationIDGroups added in v0.2.6

func (h *Handler) GetApiV1OrganizationsOrganizationIDGroups(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter)

func (*Handler) GetApiV1OrganizationsOrganizationIDGroupsGroupid added in v0.2.6

func (h *Handler) GetApiV1OrganizationsOrganizationIDGroupsGroupid(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter, groupID openapi.GroupidParameter)

func (*Handler) GetApiV1OrganizationsOrganizationIDOauth2providers added in v0.2.6

func (h *Handler) GetApiV1OrganizationsOrganizationIDOauth2providers(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter)

func (*Handler) GetApiV1OrganizationsOrganizationIDProjects added in v0.2.6

func (h *Handler) GetApiV1OrganizationsOrganizationIDProjects(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter)

func (*Handler) GetApiV1OrganizationsOrganizationIDProjectsProjectID added in v0.2.6

func (h *Handler) GetApiV1OrganizationsOrganizationIDProjectsProjectID(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter, projectID openapi.ProjectIDParameter)

func (*Handler) GetApiV1OrganizationsOrganizationIDRoles added in v0.2.6

func (h *Handler) GetApiV1OrganizationsOrganizationIDRoles(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter)

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) PostApiV1OrganizationsOrganizationIDGroups added in v0.2.6

func (h *Handler) PostApiV1OrganizationsOrganizationIDGroups(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter)

func (*Handler) PostApiV1OrganizationsOrganizationIDOauth2providers added in v0.2.6

func (h *Handler) PostApiV1OrganizationsOrganizationIDOauth2providers(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter)

func (*Handler) PostApiV1OrganizationsOrganizationIDProjects added in v0.2.6

func (h *Handler) PostApiV1OrganizationsOrganizationIDProjects(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter)

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) PutApiV1OrganizationsOrganizationID added in v0.2.6

func (h *Handler) PutApiV1OrganizationsOrganizationID(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter)

func (*Handler) PutApiV1OrganizationsOrganizationIDGroupsGroupid added in v0.2.6

func (h *Handler) PutApiV1OrganizationsOrganizationIDGroupsGroupid(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter, groupID openapi.GroupidParameter)

func (*Handler) PutApiV1OrganizationsOrganizationIDOauth2providersProviderID added in v0.2.6

func (h *Handler) PutApiV1OrganizationsOrganizationIDOauth2providersProviderID(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter, providerID openapi.Oauth2ProvderIDParameter)

func (*Handler) PutApiV1OrganizationsOrganizationIDProjectsProjectID added in v0.2.6

func (h *Handler) PutApiV1OrganizationsOrganizationIDProjectsProjectID(w http.ResponseWriter, r *http.Request, organizationID openapi.OrganizationIDParameter, projectID openapi.ProjectIDParameter)

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