Documentation ¶
Index ¶
- Constants
- type AccessControlConfig
- type AuthInfo
- type Client
- func (c *Client) DirectSamlAuth(req *DirectSamlAuthRequest) (*DirectAuthResponse, error)
- func (c *Client) Discovery(req *DiscoveryRequest) (*DiscoveryResponse, error)
- func (c *Client) GetConfig(req *ConfigRequest) (*ConfigResponse, error)
- func (c *Client) WorkflowAuth(req *WorkflowAuthRequest) (*WorkflowAuthResponse, error)
- func (c *Client) WorkflowStart(req *WorkflowStartRequest) (*WorkflowStartResponse, error)
- type Config
- type ConfigPublic
- type ConfigRequest
- type ConfigResponse
- type Cred
- type CredentialsConfig
- type CredentialsConfigIAMAssumeRole
- type CredentialsConfigIAMUser
- type CredentialsConfigKube
- type CredentialsConfigSSH
- type DirectAuthResponse
- type DirectOidcAuthRequest
- type DirectSamlAuthRequest
- type DiscoveryRequest
- type DiscoveryResponse
- type IAMCred
- type IPOracleConfig
- type IdpConfig
- type IdpConfigOidc
- type IdpConfigSaml
- type KubeCred
- type Request
- type RoleConfig
- type RoleCredentialDeliveryConfig
- type SSHCred
- type WorkflowAuthRequest
- type WorkflowAuthResponse
- type WorkflowConfig
- type WorkflowPolicyConfig
- type WorkflowStartRequest
- type WorkflowStartResponse
Constants ¶
View Source
const RpcRetryInterval = 15 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessControlConfig ¶
type AccessControlConfig struct {
IPOracle IPOracleConfig `json:"ip_oracle"`
}
type Client ¶
type Client struct { // * Function name - my-function (name-only), my-function:v1 (with alias). // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // * Partial ARN - 123456789012:function:my-function. FunctionName string Debug int // contains filtered or unexported fields }
func (*Client) DirectSamlAuth ¶
func (c *Client) DirectSamlAuth(req *DirectSamlAuthRequest) (*DirectAuthResponse, error)
func (*Client) Discovery ¶
func (c *Client) Discovery(req *DiscoveryRequest) (*DiscoveryResponse, error)
func (*Client) GetConfig ¶
func (c *Client) GetConfig(req *ConfigRequest) (*ConfigResponse, error)
func (*Client) WorkflowAuth ¶
func (c *Client) WorkflowAuth(req *WorkflowAuthRequest) (*WorkflowAuthResponse, error)
func (*Client) WorkflowStart ¶
func (c *Client) WorkflowStart(req *WorkflowStartRequest) (*WorkflowStartResponse, error)
type Config ¶
type Config struct { Name string `json:"name"` Version string `json:"version"` Idp []IdpConfig `json:"idp"` Roles []RoleConfig `json:"roles"` Workflow WorkflowConfig `json:"workflow"` Credentials []CredentialsConfig `json:"credentials"` AccessControl AccessControlConfig `json:"access_control"` }
func (*Config) FindCredentialByName ¶
func (c *Config) FindCredentialByName(name string) *CredentialsConfig
func (*Config) FindRoleByName ¶
func (c *Config) FindRoleByName(name string) *RoleConfig
func (*Config) NormaliseAndLoad ¶ added in v0.1.2
type ConfigPublic ¶
type ConfigPublic struct { Name string `json:"name"` Idp []IdpConfig `json:"idp"` Roles []RoleConfig `json:"roles"` Workflow WorkflowConfig `json:"workflow"` }
func (*ConfigPublic) FindRoleByName ¶
func (c *ConfigPublic) FindRoleByName(name string) *RoleConfig
type ConfigRequest ¶
type ConfigRequest struct { }
type ConfigResponse ¶
type ConfigResponse struct { Version string `json:"version"` Config ConfigPublic `json:"config"` }
type Cred ¶
type Cred struct { Name string `json:"name"` Type string `json:"type"` Expiry int64 `json:"expiry"` Value interface{} `json:"value"` }
func (*Cred) UnmarshalJSON ¶
type CredentialsConfig ¶
type CredentialsConfig struct { Name string `json:"name"` Type string `json:"type"` Config interface{} `json:"config"` }
func (*CredentialsConfig) UnmarshalJSON ¶
func (c *CredentialsConfig) UnmarshalJSON(data []byte) error
type CredentialsConfigIAMAssumeRole ¶
type CredentialsConfigIAMAssumeRole struct {
TargetRole string `json:"target_role"`
}
type CredentialsConfigIAMUser ¶
type CredentialsConfigIAMUser struct { }
type CredentialsConfigKube ¶
type CredentialsConfigKube struct {
CAKey string `json:"ca_key"`
}
type CredentialsConfigSSH ¶
type DirectAuthResponse ¶
type DirectOidcAuthRequest ¶
type DirectOidcAuthRequest struct { }
type DirectSamlAuthRequest ¶
type DiscoveryRequest ¶
type DiscoveryRequest struct{}
type DiscoveryResponse ¶
type DiscoveryResponse struct{}
type IPOracleConfig ¶
type IPOracleConfig struct {
WhiteListCidrs []string `json:"whitelist_cidrs"`
}
type IdpConfig ¶
type IdpConfig struct { Name string `json:"name"` Type string `json:"type"` Config interface{} `json:"config"` }
func (*IdpConfig) UnmarshalJSON ¶
type IdpConfigOidc ¶
type IdpConfigOidc struct { }
type IdpConfigSaml ¶
type Request ¶
type Request struct { Type string `json:"type"` Payload interface{} `json:"payload"` }
func (*Request) UnmarshalJSON ¶
type RoleConfig ¶
type RoleCredentialDeliveryConfig ¶
type RoleCredentialDeliveryConfig struct {
KmsWrapWith string `json:"kms_wrap_with"`
}
type WorkflowAuthRequest ¶
type WorkflowAuthResponse ¶
type WorkflowAuthResponse struct {
Credentials []Cred `json:"credentials"`
}
type WorkflowConfig ¶
type WorkflowConfig struct { BaseUrl string `json:"base_url"` Policies []WorkflowPolicyConfig `json:"policies"` }
func (*WorkflowConfig) FindPolicyByName ¶
func (wc *WorkflowConfig) FindPolicyByName(name string) *WorkflowPolicyConfig
type WorkflowPolicyConfig ¶
type WorkflowStartRequest ¶
type WorkflowStartRequest struct { }
type WorkflowStartResponse ¶
Click to show internal directories.
Click to hide internal directories.