import "github.com/jenkins-x/jx/pkg/cloud/iks"
accounts.go auth.go cli.go clusters.go datacenters.go helper.go iam.go iks.go regions.go registry.go zones.go
const ( ErrCodeNotAuthorized = "NotAuthorized" ErrCodeUnableToAuthenticate = "UnableToAuthenticate" )
const ( //ErrCodeInvalidToken ... ErrCodeInvalidToken = "InvalidToken" )
func Filter(vs []containerv1.KubeVersion, f func(containerv1.KubeVersion) bool) []containerv1.KubeVersion
func GetClusterRegistry(kubeClient kubernetes.Interface) string
Try to use the regional registry used by the cluster We will also set the corresponding secret for jenkins-x right away
func GetKubeClusterID(kubeClient kubernetes.Interface) (string, error)
func GetKubeClusterRegion(kubeClient kubernetes.Interface) (string, error)
func GetKubeVersions(versions containerv1.KubeVersions) ([]string, string, error)
InstallIBMCloudWithVersion installs a specific version of IBM cloud CLI
type Account struct { GUID string Name string Type string State string OwnerGUID string OwnerUserID string OwnerUniqueID string CustomerID string CountryCode string CurrencyCode string Organizations []AccountOrganization IMSAccountID string }
Account Model ...
type AccountEntity struct { Name string `json:"name"` Type string `json:"type"` State string `json:"state"` OwnerGUID string `json:"owner"` OwnerUserID string `json:"owner_userid"` OwnerUniqueID string `json:"owner_unique_id"` CustomerID string `json:"customer_id"` CountryCode string `json:"country_code"` CurrencyCode string `json:"currency_code"` Organizations []AccountOrganization `json:"organizations_region"` Linkages []Linkage `json:"linkages"` BluemixSubscriptions []BluemixSubscription `json:"bluemix_subscriptions"` }
AccountEntity ...
type AccountNameQueryResponse struct { Metadata Metadata Entity AccountEntity }
AccountQueryResponse ...
func (nameQueryResponse AccountNameQueryResponse) ToModel() Account
AccountOrganization ...
type AccountQueryResponse struct { Metadata Metadata Accounts []AccountResource `json:"resources"` }
AccountQueryResponse ...
type AccountResource struct { Resource Entity AccountEntity }
AccountResource ...
func (resource AccountResource) ToModel() Account
ToModel ...
AccountServiceAPI is the accountv2 client ...
func NewAccountServiceAPI(sess *session.Session) (AccountServiceAPI, error)
New ...
type Accounts interface { List() ([]Account, error) FindByOrg(orgGUID string, region string) (*Account, error) FindByOwner(userID string) (*Account, error) Get(accountId string) (*Account, error) }
Accounts ...
type ClusterConfig struct { ClusterID string `json:"cluster_id"` ClusterName string `json:"cluster_name"` ClusterType string `json:"cluster_type"` ClusterPayTier string `json:"cluster_pay_tier"` Datacenter string `json:"datacenter"` AccountID string `json:"account_id"` Created string `json:"created"` }
This name is the name known to cruiser
type Clusters interface { GetClusterConfig(name string, target containerv1.ClusterTargetHeader) (string, error) }
type ConfigJSON struct { APIEndpoint string `json:"APIEndpoint"` ConsoleEndpoint string `json:"ConsoleEndpoint"` Region string `json:"Region"` RegionID string `json:"RegionID"` RegionType string `json:"RegionType"` IAMEndpoint string `json:"IAMEndpoint"` IAMToken string `json:"IAMToken"` IAMRefreshToken string `json:"IAMRefreshToken"` Account struct { GUID string `json:"GUID"` Name string `json:"Name"` Owner string `json:"Owner"` } `json:"Account"` ResourceGroup struct { GUID string `json:"GUID"` Name string `json:"Name"` State string `json:"State"` Default bool `json:"Default"` QuotaID string `json:"QuotaID"` } `json:"ResourceGroup"` CFEETargeted bool `json:"CFEETargeted"` CFEEEnvID string `json:"CFEEEnvID"` PluginRepos []struct { Name string `json:"Name"` URL string `json:"URL"` } `json:"PluginRepos"` SSLDisabled bool `json:"SSLDisabled"` Locale string `json:"Locale"` Trace string `json:"Trace"` ColorEnabled string `json:"ColorEnabled"` HTTPTimeout int `json:"HTTPTimeout"` CLIInfoEndpoint string `json:"CLIInfoEndpoint"` CheckCLIVersionDisabled bool `json:"CheckCLIVersionDisabled"` UsageStatsDisabled bool `json:"UsageStatsDisabled"` SDKVersion string `json:"SDKVersion"` UpdateCheckInterval int `json:"UpdateCheckInterval"` UpdateRetryCheckInterval int `json:"UpdateRetryCheckInterval"` UpdateNotificationInterval int `json:"UpdateNotificationInterval"` }
type IAMAuthRepository struct {
// contains filtered or unexported fields
}
IAMAuthRepository ...
NewIAMAuthRepository ...
func (auth *IAMAuthRepository) AuthenticateAPIKey(apiKey string) error
AuthenticateAPIKey ...
func (auth *IAMAuthRepository) AuthenticatePassword(username string, password string) error
AuthenticatePassword ...
func (auth *IAMAuthRepository) AuthenticateSSO(passcode string) error
AuthenticateSSO ...
func (auth *IAMAuthRepository) RefreshToken() (string, error)
RefreshToken ...
func (auth *IAMAuthRepository) RefreshTokenToLinkAccounts(account *Account) error
type IAMError struct { ErrorCode string `json:"errorCode"` ErrorMessage string `json:"errorMessage"` ErrorDetails string `json:"errorDetails"` }
IAMError ...
Description ...
type IAMTokenResponse struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` UAAAccessToken string `json:"uaa_token"` UAARefreshToken string `json:"uaa_refresh_token"` TokenType string `json:"token_type"` }
IAMTokenResponse ...
type KubernetesServiceAPI interface { Zones() Zones Regions() Regions MachineTypes() MachineTypes VLANs() VLANs Clusters() Clusters }
func New(sess *session.Session) (KubernetesServiceAPI, error)
func NewSessionless(sess *session.Session) (KubernetesServiceAPI, error)
No auth session is required for region and zone calls
type MachineType struct { Name string Memory string NetworkSpeed string Cores string Os string ServerType string Storage string SecondaryStorage string SecondaryStorageEncrypted bool Deprecated bool CorrespondingMachineType string IsTrusted bool Gpus string }
type MachineTypes interface { GetMachineTypes(zone Zone, region Region) ([]MachineType, error) GetMachineType(machinetypearg string, zone Zone, region Region) (*MachineType, error) }
Metadata ...
type Region struct { Name string `json:"name"` Alias string `json:"alias"` CfURL string `json:"cfURL"` FreeEnabled bool `json:"freeEnabled"` }
type Regions interface { GetRegions() ([]Region, error) GetRegion(region string) (*Region, error) }
type Registry interface { AddToken(account string, description string, permanent bool, write bool) (string, error) }
func NewRegistryServiceAPI(sess *session.Session) (RegistryServiceAPI, error)
New ...
Resource ...
type VLAN struct { ID string `json:"id"` Type string `json:"type"` Properties struct { Name string `json:"name"` Note string `json:"note"` PrimaryRouter string `json:"primary_router"` VlanNumber string `json:"vlan_number"` VlanType string `json:"vlan_type"` Location string `json:"location"` LocalDiskStorageCapability string `json:"local_disk_storage_capability"` SanStorageCapability string `json:"san_storage_capability"` } `json:"properties"` }
type VLANs interface { GetVLANs(zone Zone, region Region) ([]VLAN, error) GetVLAN(vlanarg string, zone Zone, region Region) (*VLAN, error) }
type Zones interface { GetZones(region Region) ([]Zone, error) GetZone(zone string, region Region) (*Zone, error) }
Package iks imports 29 packages (graph). Updated 2020-12-27. Refresh now. Tools for package owners.