Documentation
¶
Index ¶
- func ClearLog()
- func CreateCertificates(ctx context.Context, dnsNames, secretName, secretNamespace string) error
- func GetPolicyDocument() []byte
- func HandleAWSRequest(req *http.Request, body []byte, respCode int, clientIdentity *NamespacedName)
- func LoadMaps()
- func ParseConfig()
- func ReadServiceFiles()
- func Run()
- type ActionCandidate
- type AzureEntry
- type AzureIAMPolicy
- type Entry
- type IAMPolicy
- type NamespacedName
- type ServiceDefinition
- type ServiceDefinitionMetadata
- type ServiceHttp
- type ServiceOperation
- type ServiceStructure
- type Statement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertificates ¶
func GetPolicyDocument ¶
func GetPolicyDocument() []byte
func HandleAWSRequest ¶
func HandleAWSRequest(req *http.Request, body []byte, respCode int, clientIdentity *NamespacedName)
func ParseConfig ¶
func ParseConfig()
func ReadServiceFiles ¶
func ReadServiceFiles()
Types ¶
type ActionCandidate ¶
type AzureEntry ¶
type AzureIAMPolicy ¶
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 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"`
SrcIP string `json:"SrcIp"`
ClientIdentity *NamespacedName
}
Entry is a single CSM entry
type NamespacedName ¶
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 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"`
}
Click to show internal directories.
Click to hide internal directories.