apiserver

package
v0.0.0-...-3266887 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 37 Imported by: 0

Documentation

Overview

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

Index

Constants

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

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

Variables

This section is empty.

Functions

func NewApp

func NewApp(basename string) *app.App

NewApp creates an App object with default parameters.

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
	MaxMsgSize int
	ServerCert genericoptions.GeneratableKeyCert
	// contains filtered or unexported fields
}

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.
v1/policy
Package policy implements the policy handlers.
Package policy implements the policy handlers.
v1/secret
Package secret implements the secret handlers.
Package secret implements the secret handlers.
v1/user
Package user implements the user handler.
Package user implements the user handler.
Package options contains flags and options for initializing an apiserver
Package options contains flags and options for initializing an apiserver
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.
etcd
Package etcd implements `github.com/marmotedu/iam/internal/apiserver/store.Store` interface.
Package etcd implements `github.com/marmotedu/iam/internal/apiserver/store.Store` interface.
fake
Package fake implements `github.com/marmotedu/iam/internal/apiserver/store.Store` interface.
Package fake implements `github.com/marmotedu/iam/internal/apiserver/store.Store` interface.
mysql
Package mysql implements `github.com/marmotedu/iam/internal/apiserver/store.Store` interface.
Package mysql implements `github.com/marmotedu/iam/internal/apiserver/store.Store` interface.

Jump to

Keyboard shortcuts

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