apiserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 39 Imported by: 0

Documentation

Overview

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

Copyright 2020 Talhuang<talhuang1231@gmail.com>. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.

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
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.
item
Package options contains flags and options for initializing an apiserver
Package options contains flags and options for initializing an apiserver
service
v1
mockService := new(MockService) mockItemService := new(MockItemService) mockService.On("Item").Return(mockItemService) mockItemService.On("Create", ctx, item, opts).Return(nil)
mockService := new(MockService) mockItemService := new(MockItemService) mockService.On("Item").Return(mockItemService) mockItemService.On("Create", ctx, item, opts).Return(nil)
mockFactory := new(MockFactory) mockItemStore := new(MockItemStore) mockFactory.On("Item").Return(mockItemStore) mockItemStore.On("Create", ctx, item, opts).Return(nil)
mockFactory := new(MockFactory) mockItemStore := new(MockItemStore) mockFactory.On("Item").Return(mockItemStore) mockItemStore.On("Create", ctx, item, opts).Return(nil)

Jump to

Keyboard shortcuts

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