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 ¶
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) |
Click to show internal directories.
Click to hide internal directories.