types

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterNewRequest added in v0.3.0

type ClusterNewRequest struct {
	Name      string              `json:"name"`
	UID       string              `json:"uid"`
	KubeUID   string              `json:"kube_uid"`
	JWKS      JWKS                `json:"jwks"`
	OIDConfig OpenIDConfiguration `json:"oid_config"`
}

type ClusterNewResponse added in v0.3.0

type ClusterNewResponse struct {
	Token string `json:"token"`
	UID   string `json:"uid"`
	URL   string `json:"url"`
	Name  string `json:"name"`
}

type ClusterPutRequest

type ClusterPutRequest struct {
	ID        string              `path:"id"`
	UID       string              `json:"uid"`
	KubeUID   string              `json:"kube_uid"`
	JWKS      JWKS                `json:"jwks"`
	OIDConfig OpenIDConfiguration `json:"oid_config"`
}

type ClusterPutResponse added in v0.3.0

type ClusterPutResponse struct {
	Error    string `json:"error,omitempty"`
	Verified bool   `json:"verified,omitempty"`
}

type DataResponse

type DataResponse struct {
	Success bool         `json:"success,omitempty"`
	Data    *interface{} `json:"data,omitempty"`
}

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

type JWK

type JWK struct {
	Use string `json:"use"`
	Kty string `json:"kty"`
	Kid string `json:"kid" gorm:"uniqueIndex:idx_cluster_key"`
	Alg string `json:"alg"`
	N   string `json:"n"`
	E   string `json:"e"`
}

type JWKS

type JWKS struct {
	Keys []JWK `json:"keys"`
}

type MetadataResponse

type MetadataResponse struct {
	Count int `json:"count"`
}

type OpenIDConfiguration

type OpenIDConfiguration struct {
	Issuer                           string   `json:"issuer"`
	JwksUri                          string   `json:"jwks_uri"`
	ResponseTypesSupported           []string `json:"response_types_supported"`
	SubjectTypesSupported            []string `json:"subject_types_supported"`
	IDTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"`
}

type Response

type Response struct {
	ErrorResponse
	DataResponse

	Metadata *MetadataResponse `json:"metadata,omitempty"`
}

Jump to

Keyboard shortcuts

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