ers

package
v0.0.0-...-b394286 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalOpts = GlobalOptionsKey{
	// contains filtered or unexported fields
}

GlobalOpts is the convenience object for storing the fixed global conifguration (parameter) keys

Functions

func SetGlobalOpts

func SetGlobalOpts(cmd *cobra.Command)

SetGlobalOpts configures the global parameters on the given root command

func ValidateGlobalOpts

func ValidateGlobalOpts() error

ValidateGlobalOpts checks the presence of the required global configuration parameters

Types

type GlobalOptionsKey

type GlobalOptionsKey struct {
	// contains filtered or unexported fields
}

GlobalOptionsKey is the type for holding the configuration key for each global parameter

func (*GlobalOptionsKey) ClientID

func (key *GlobalOptionsKey) ClientID() string

func (*GlobalOptionsKey) ClientSecret

func (key *GlobalOptionsKey) ClientSecret() string

func (*GlobalOptionsKey) ErsUrl

func (key *GlobalOptionsKey) ErsUrl() string

func (*GlobalOptionsKey) KebApiUrl

func (key *GlobalOptionsKey) KebApiUrl() string

func (*GlobalOptionsKey) MothershipApiUrl

func (key *GlobalOptionsKey) MothershipApiUrl() string

func (*GlobalOptionsKey) OauthUrl

func (key *GlobalOptionsKey) OauthUrl() string

type Instance

type Instance struct {
	BrokerId       string
	CommercialType string
	// TODO: Date comes in different format than specified
	// CreatedDate       date.Date // 2021-10-04T112314.137Z
	CustomLabels    interface{}
	DashboardUrl    string
	Description     string
	EnvironmentType string // always "kyma"
	GlobalAccountID string `json:"globalAccountGUID"`
	Id              string
	Labels          string
	LandscapeLabel  string
	// TODO: Date comes in different format than specified
	ModifiedDate   int //2021-10-04T112314.137Z
	Name           string
	Operation      string
	Parameters     interface{}
	PlanId         string
	PlanName       string
	PlatformId     string
	ServiceId      string
	ServiceName    string
	State          string //[CREATING UPDATING DELETING OK CREATION_FAILED DELETION_FAILED UPDATE_FAILED]
	StateMessage   string
	SubaccountGUID string
	TenantId       string
	Type           string // always "Provision"
	Status         string // always "Processed"
	Migrated       bool
}

func (*Instance) IsUsable

func (i *Instance) IsUsable() bool

func (Instance) String

func (e Instance) String() string

type MigrationMetadata

type MigrationMetadata struct {
	Id                      string    `json:"id"`
	KymaMigrated            bool      `json:"kymaMigrated"`
	KymaSkipped             bool      `json:"kymaSkipped"`
	KymaMigrationStartedAt  time.Time `json:"kymaMigrationStartedAt"`
	KymaMigrationFinishedAt time.Time `json:"kymaMigrationFinishedAt"`
}

type Work

type Work struct {
	Instance           Instance
	MigrationMetadata  MigrationMetadata
	ProcessedTimestamp int64
	ProcessedCnt       int64
	MaxProcessedCnt    int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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