apiserver

package
v0.0.0-...-6dfea25 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Package apiserver does all of the work necessary to create a iam APIServer.

Index

Constants

View Source
const (
	// APIServerAudience defines the value of jwt audience field.
	APIServerAudience = "iam.api.rose839.com"

	// APIServerIssuer defines the value of jwt issuer field.
	APIServerIssuer = "iam-apiserver"
)

Variables

This section is empty.

Functions

func InstallMiddleware

func InstallMiddleware(g *gin.Engine)

func NewApp

func NewApp(basename string) *app.App

func Run

func Run(cfg *config.Config) error

Run runs the specified APIServer. This should never exit.

Types

type ExtraConfig

type ExtraConfig struct {
	Addr         string // grpc address
	MaxMsgSize   int    // grpc max message size
	ServerCert   genericoptions.GeneratableKeyCert
	MySQLOptions *genericoptions.MySQLOptions
}

ExtraConfig defines extra configuration for the iam-apiserver.

Directories

Path Synopsis
Package config defines configuration for iam-apiserver.
Package config defines configuration for iam-apiserver.
controller
v1/cache
Package cache defines a cache service which can return all secrets and policies.
Package cache defines a cache service which can return all secrets and policies.
* @Author: your name * @Date: 2021-12-30 23:07:01 * @LastEditTime: 2021-12-30 23:27:24 * @LastEditors: Please set LastEditors * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @FilePath: /IAM/internal/apiserver/options/options.go
* @Author: your name * @Date: 2021-12-30 23:07:01 * @LastEditTime: 2021-12-30 23:27:24 * @LastEditors: Please set LastEditors * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @FilePath: /IAM/internal/apiserver/options/options.go
service
v1
Package v1 is the place where you can implements more complex business logic.
Package v1 is the place where you can implements more complex business logic.
Package store defines the storage interface for iam-apiserver.
Package store defines the storage interface for iam-apiserver.
mysql
Package mysql implements `github.com/rose839/IAM/internal/apiserver/store.Store` interface.
Package mysql implements `github.com/rose839/IAM/internal/apiserver/store.Store` interface.

Jump to

Keyboard shortcuts

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