types

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AssumeRolePolicyKeyStatement  = "Statement"
	AssumeRolePolicyKeyVersion    = "Version"
	AssumeRolePolicyVersionLatest = "1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AssumeRolePolicyDocument

type AssumeRolePolicyDocument map[string]interface{}

func MakeAssumeRolePolicyDocument

func MakeAssumeRolePolicyDocument(policies []AssumeRolePolicyStatement) AssumeRolePolicyDocument

func (*AssumeRolePolicyDocument) AppendPolicy

func (*AssumeRolePolicyDocument) AppendPolicyIfNotExist added in v0.1.1

func (p *AssumeRolePolicyDocument) AppendPolicyIfNotExist(policy AssumeRolePolicyStatement) error

func (*AssumeRolePolicyDocument) IncludePolicy

func (p *AssumeRolePolicyDocument) IncludePolicy(policy AssumeRolePolicyStatement) (bool, error)

func (*AssumeRolePolicyDocument) JSON

func (p *AssumeRolePolicyDocument) JSON() string

type AssumeRolePolicyStatement

type AssumeRolePolicyStatement map[string]interface{}

func MakeAssumeRolePolicyStatementWithServiceAccount

func MakeAssumeRolePolicyStatementWithServiceAccount(oidcIssuer, oidcArn, namespace, serviceAccount string) AssumeRolePolicyStatement

func (*AssumeRolePolicyStatement) Equal

func (*AssumeRolePolicyStatement) JSON

type Cluster

type Cluster struct {
	ClusterId   string
	ClusterType ClusterType
	MetaData    ClusterMetaData
	Name        string
	RegionId    string
	State       ClusterState
}

type ClusterLog

type ClusterLog struct {
	Log     string
	Created time.Time
}

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 RamRole

type RamRole struct {
	RoleName                 string
	RoleId                   string
	Arn                      string
	Description              string
	AssumeRolePolicyDocument *AssumeRolePolicyDocument
	MaxSessionDuration       int64
}

Jump to

Keyboard shortcuts

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