types

package
v0.6.0 Latest Latest
Warning

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

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

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 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 RamPolicy added in v0.6.0

type RamPolicy struct {
	DefaultVersion string
	//UpdateDate      string
	Description     string
	PolicyDocument  *RamPolicyDocument
	AttachmentCount int32
	PolicyName      string
	//CreateDate      string
	PolicyType 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

type RamRole

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

type RamRolePolicy added in v0.6.0

type RamRolePolicy struct {
	DefaultVersion string
	Description    string
	PolicyName     string
	//AttachDate     string
	PolicyType string
}

Jump to

Keyboard shortcuts

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