nsparser

package
v0.0.0-...-790824e Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AllNamespaces = "ALL"

AllNamespaces means user can access all namespaces

Variables

This section is empty.

Functions

This section is empty.

Types

type NSParser

type NSParser interface {
	ParseNamespaces(req *http.Request) ([]string, error)
}

NSParser define interface for namespace parser

func NewNSParser

func NewNSParser(cfgFile string) NSParser

NewNSParser create NSParser instance according to configration file. The configuration file should be in format: type: typename paras:

pname1: pvalue1
pname2: pvalue2

only ibm-cs type of parser is implemented for now

type Type

type Type string

Type defines type of namespace parser

const NSParserTypeCS Type = "ibm-cs-iam"

NSParserTypeCS this namespace parser gets namespaces by querying IBM Common Service IAM service

const NSParserTypeNSList Type = "ns-list"

NSParserTypeNSList use this kind of namespace parser, user can configure namespace list in configuration file

Jump to

Keyboard shortcuts

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