whitelist

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package whitelist provides whitelist of parameters for aws api.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Descriptor

type Descriptor struct {
	Map      bool   `json:"map,omitempty"`
	GetKeys  bool   `json:"get_keys"`
	List     bool   `json:"list,omitempty"`
	GetCount bool   `json:"get_count,omitempty"`
	RenameTo string `json:"rename_to,omitempty"`
}

Descriptor is a rule for recording the parameter.

type Operation

type Operation struct {
	RequestDescriptors  map[string]*Descriptor `json:"request_descriptors,omitempty"`
	RequestParameters   []string               `json:"request_parameters,omitempty"`
	ResponseDescriptors map[string]*Descriptor `json:"response_descriptors,omitempty"`
	ResponseParameters  []string               `json:"response_parameters,omitempty"`
}

Operation is whitelist of parameters for specific aws operation.

type Service

type Service struct {
	Operations map[string]*Operation `json:"operations"`
}

Service is whitelist for specific aws service.

type Whitelist

type Whitelist struct {
	Services map[string]*Service `json:"services"`
}

Whitelist is whitelist of parameters for aws api.

func Read

func Read(r io.Reader) (*Whitelist, error)

Read reads a whitelist from r.

func ReadFile

func ReadFile(name string) (*Whitelist, error)

ReadFile reads a whitelist from the file name.

Jump to

Keyboard shortcuts

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