iamlivecore

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 40 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearLog

func ClearLog()

func GetPolicyDocument

func GetPolicyDocument() []byte

func Run

func Run()

func RunWithArgs

func RunWithArgs(provider string, setIni bool, profile string, failsOnly bool, outputFile string, refreshRate int, sortAlphabetical bool, host, mode, bindAddr, caBundle, caKey, accountID string, background, debug, forceWildcardResource bool)

Types

type ActionCandidate

type ActionCandidate struct {
	Path      string
	Action    string
	URIParams map[string]string
	Params    map[string][]string
	Operation ServiceOperation
	Service   string
}

type AzureCondition added in v1.1.0

type AzureCondition struct {
	PathEquals     map[string]string `json:"pathEquals"`
	BodyPathExists string            `json:"bodyPathExists"`
}

type AzureEntry added in v1.1.0

type AzureEntry struct {
	HTTPMethod string
	Path       string
	Parameters map[string][]string
	Body       []byte
}

type AzureIAMPolicy added in v1.1.0

type AzureIAMPolicy struct {
	Name             string   `json:"Name"`
	IsCustom         bool     `json:"IsCustom"`
	Description      string   `json:"Description"`
	Actions          []string `json:"Actions"`
	DataActions      []string `json:"DataActions"`
	NotDataActions   []string `json:"NotDataActions"`
	AssignableScopes []string `json:"AssignableScopes"`
}

type AzurePath added in v1.1.0

type AzurePath map[string]AzurePermission

type AzurePermission added in v1.1.0

type AzurePermission map[string]AzurePermissionDetail

type AzurePermissionDetail added in v1.1.0

type AzurePermissionDetail struct {
	Automated    bool           `json:"automated"`
	IsDataAction bool           `json:"isDataAction"`
	Condition    AzureCondition `json:"condition"`
}

type AzureTemplate added in v1.1.0

type AzureTemplate struct {
	Resources []AzureTemplateResource `json:"resources"`
}

type AzureTemplateResource added in v1.1.0

type AzureTemplateResource struct {
	Name       string      `json:"name"`
	Type       string      `json:"type"`
	Properties interface{} `json:"properties"`
}

type Entry

type Entry struct {
	Region              string `json:"Region"`
	Type                string `json:"Type"`
	Service             string `json:"Service"`
	Method              string `json:"Api"`
	Parameters          map[string][]string
	URIParameters       map[string]string
	FinalHTTPStatusCode int    `json:"FinalHttpStatusCode"`
	AccessKey           string `json:"AccessKey"`
}

Entry is a single CSM entry

type GCPAPIListFile added in v1.1.0

type GCPAPIListFile struct {
	Items []GCPAPIListItem `json:"items"`
}

type GCPAPIListItem added in v1.1.0

type GCPAPIListItem struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type GCPAPIMapMethod added in v1.1.0

type GCPAPIMapMethod struct {
	Permissions []GCPAPIMapPermission `json:"permissions"`
}

type GCPAPIMapPermission added in v1.1.0

type GCPAPIMapPermission struct {
	Name string `json:"name"`
}

type GCPAPIMapService added in v1.1.0

type GCPAPIMapService struct {
	Methods map[string]GCPAPIMapMethod `json:"methods"`
}

type GCPMethodDefinition added in v1.1.0

type GCPMethodDefinition struct {
	FlatPath   string `json:"flatPath"`
	HTTPMethod string `json:"httpMethod"`
	ID         string `json:"id"`
}

type GCPResourceDefinition added in v1.1.0

type GCPResourceDefinition struct {
	Methods   map[string]GCPMethodDefinition   `json:"methods"`
	Resources map[string]GCPResourceDefinition `json:"resources"`
}

type GCPServiceDefinition added in v1.1.0

type GCPServiceDefinition struct {
	RootURL    string `json:"rootUrl"`
	BasePath   string `json:"basePath"`
	RootDomain string
	Resources  map[string]GCPResourceDefinition `json:"resources"`
}

type IAMPolicy

type IAMPolicy struct {
	Version   string      `json:"Version"`
	Statement []Statement `json:"Statement"`
}

IAMPolicy is a full IAM policy

type ServiceDefinition

type ServiceDefinition struct {
	Version    string                      `json:"version"`
	Metadata   ServiceDefinitionMetadata   `json:"metadata"`
	Operations map[string]ServiceOperation `json:"operations"`
	Shapes     map[string]ServiceStructure `json:"shapes"`
}

type ServiceDefinitionMetadata

type ServiceDefinitionMetadata struct {
	APIVersion          string `json:"apiVersion"`
	EndpointPrefix      string `json:"endpointPrefix"`
	JSONVersion         string `json:"jsonVersion"`
	Protocol            string `json:"protocol"`
	ServiceFullName     string `json:"serviceFullName"`
	ServiceAbbreviation string `json:"serviceAbbreviation"`
	ServiceID           string `json:"serviceId"`
	SignatureVersion    string `json:"signatureVersion"`
	TargetPrefix        string `json:"targetPrefix"`
	UID                 string `json:"uid"`
}

type ServiceHttp

type ServiceHttp struct {
	Method       string `json:"method"`
	RequestURI   string `json:"requestUri"`
	ResponseCode int    `json:"responseCode"`
}

type ServiceOperation

type ServiceOperation struct {
	Http   ServiceHttp      `json:"http"`
	Input  ServiceStructure `json:"input"`
	Output ServiceStructure `json:"output"`
}

type ServiceStructure

type ServiceStructure struct {
	Required     []string                    `json:"required"`
	Shape        string                      `json:"shape"`
	Type         string                      `json:"type"`
	Member       *ServiceStructure           `json:"member"`
	Members      map[string]ServiceStructure `json:"members"`
	LocationName string                      `json:"locationName"`
	QueryName    string                      `json:"queryName"`
}

type Statement

type Statement struct {
	Effect   string      `json:"Effect"`
	Action   []string    `json:"Action"`
	Resource interface{} `json:"Resource"`
}

Statement is a single statement within an IAM policy

Jump to

Keyboard shortcuts

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