Documentation ¶
Index ¶
Constants ¶
View Source
const ( RamPolicyKeyStatement = "Statement" RamPolicyKeyVersion = "Version" RamPolicyVersionLatest = "1" )
Variables ¶
View Source
var ( RamPolicyTypeSystem = "System" RamPolicyTypeCustom = "Custom" )
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { ClusterId string ClusterType ClusterType MetaData ClusterMetaData Name string RegionId string State ClusterState }
type ClusterLog ¶
type ClusterMetaData ¶
type ClusterMetaData struct {
RRSAConfig RRSAConfig `json:"RRSAConfig"`
}
type ClusterState ¶
type ClusterState string
var ClusterStateRunning ClusterState = "running"
func (ClusterState) IsRunning ¶
func (s ClusterState) IsRunning() bool
type ClusterTask ¶
type ClusterTask struct { TaskId string State ClusterTaskState Error interface{} Result interface{} }
func (ClusterTask) Err ¶
func (t ClusterTask) Err() string
type ClusterTaskState ¶
type ClusterTaskState string
var ( ClusterTaskStateSuccess ClusterTaskState = "success" ClusterTaskStateFail ClusterTaskState = "fail" ClusterTaskStateTimeout ClusterTaskState = "timeout" ClusterTaskStateCanceled ClusterTaskState = "canceled" )
func (ClusterTaskState) IsNotSuccess ¶
func (s ClusterTaskState) IsNotSuccess() bool
type ClusterType ¶
type ClusterType string
var ClusterTypeManagedKubernetes ClusterType = "ManagedKubernetes"
type RRSAConfig ¶
type RRSAConfig struct { Enabled bool `json:"enabled"` Issuer string `json:"issuer"` Audience string `json:"audience"` OIDCName string `json:"oidc_name"` OIDCArn string `json:"oidc_arn"` }
func (RRSAConfig) TokenIssuer ¶ added in v0.2.0
func (c RRSAConfig) TokenIssuer() string
type RamPolicyDocument ¶ added in v0.6.0
type RamPolicyDocument map[string]interface{}
func MakeRamPolicyDocument ¶ added in v0.6.0
func MakeRamPolicyDocument(policies []RamPolicyStatement) RamPolicyDocument
func (*RamPolicyDocument) AppendPolicy ¶ added in v0.6.0
func (p *RamPolicyDocument) AppendPolicy(policy RamPolicyStatement) error
func (*RamPolicyDocument) AppendPolicyIfNotExist ¶ added in v0.6.0
func (p *RamPolicyDocument) AppendPolicyIfNotExist(policy RamPolicyStatement) error
func (*RamPolicyDocument) IncludePolicy ¶ added in v0.6.0
func (p *RamPolicyDocument) IncludePolicy(policy RamPolicyStatement) (bool, error)
func (*RamPolicyDocument) JSON ¶ added in v0.6.0
func (p *RamPolicyDocument) JSON() string
type RamPolicyStatement ¶ added in v0.6.0
type RamPolicyStatement map[string]interface{}
func MakeAssumeRolePolicyStatementWithServiceAccount ¶
func MakeAssumeRolePolicyStatementWithServiceAccount(oidcIssuer, oidcArn, namespace, serviceAccount string) RamPolicyStatement
func (*RamPolicyStatement) Equal ¶ added in v0.6.0
func (s *RamPolicyStatement) Equal(another RamPolicyStatement) bool
func (*RamPolicyStatement) JSON ¶ added in v0.6.0
func (s *RamPolicyStatement) JSON() string
Click to show internal directories.
Click to hide internal directories.