internal

package
v0.0.0-...-6d4a0cd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvsLifecycleData

type AvsLifecycleData struct {
	AvsEvaluationInternalId int64 `json:"avs_evaluation_internal_id"`
	AVSEvaluationExternalId int64 `json:"avs_evaluation_external_id"`

	AVSInternalEvaluationDeleted bool `json:"avs_internal_evaluation_deleted"`
	AVSExternalEvaluationDeleted bool `json:"avs_external_evaluation_deleted"`
}

type ComponentConfigurationInputList

type ComponentConfigurationInputList []*gqlschema.ComponentConfigurationInput

func (ComponentConfigurationInputList) DeepCopy

type DeprovisioningOperation

type DeprovisioningOperation struct {
	Operation `json:"-"`

	ProvisioningParameters string           `json:"provisioning_parameters"`
	Avs                    AvsLifecycleData `json:"avs"`
	EventHub               EventHub         `json:"eh"`
	SubAccountID           string           `json:"-"`
}

DeprovisioningOperation holds all information about de-provisioning operation

func NewDeprovisioningOperationWithID

func NewDeprovisioningOperationWithID(operationID, instanceID string) (DeprovisioningOperation, error)

NewProvisioningOperationWithID creates a fresh (just starting) instance of the ProvisioningOperation with provided ID

func (*DeprovisioningOperation) GetProvisioningParameters

func (do *DeprovisioningOperation) GetProvisioningParameters() (ProvisioningParameters, error)

func (*DeprovisioningOperation) SetProvisioningParameters

func (do *DeprovisioningOperation) SetProvisioningParameters(parameters ProvisioningParameters) error

type ERSContext

type ERSContext struct {
	TenantID        string                  `json:"tenant_id"`
	SubAccountID    string                  `json:"subaccount_id"`
	GlobalAccountID string                  `json:"globalaccount_id"`
	ServiceManager  *ServiceManagerEntryDTO `json:"sm_platform_credentials,omitempty"`
}

type EventHub

type EventHub struct {
	Deleted bool `json:"event_hub_deleted"`
}

type Instance

type Instance struct {
	InstanceID      string
	RuntimeID       string
	GlobalAccountID string
	SubAccountID    string
	ServiceID       string
	ServiceName     string
	ServicePlanID   string
	ServicePlanName string

	DashboardURL           string
	ProvisioningParameters string

	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt time.Time
}

func (Instance) GetProvisioningParameters

func (instance Instance) GetProvisioningParameters() (ProvisioningParameters, error)

type InstanceWithOperation

type InstanceWithOperation struct {
	Instance

	Type        sql.NullString
	State       sql.NullString
	Description sql.NullString
}

type LMS

type LMS struct {
	TenantID    string    `json:"tenant_id"`
	Failed      bool      `json:"failed"`
	RequestedAt time.Time `json:"requested_at"`
}

type LMSTenant

type LMSTenant struct {
	ID        string
	Name      string
	Region    string
	CreatedAt time.Time
}

type Operation

type Operation struct {
	ID        string
	Version   int
	CreatedAt time.Time
	UpdatedAt time.Time

	InstanceID             string
	ProvisionerOperationID string
	State                  domain.LastOperationState
	Description            string
}

type ProvisionInputCreator

type ProvisionInputCreator interface {
	SetProvisioningParameters(params ProvisioningParametersDTO) ProvisionInputCreator
	SetLabel(key, value string) ProvisionInputCreator
	// Deprecated, use: AppendOverrides
	SetOverrides(component string, overrides []*gqlschema.ConfigEntryInput) ProvisionInputCreator
	AppendOverrides(component string, overrides []*gqlschema.ConfigEntryInput) ProvisionInputCreator
	AppendGlobalOverrides(overrides []*gqlschema.ConfigEntryInput) ProvisionInputCreator
	Create() (gqlschema.ProvisionRuntimeInput, error)
}

type ProvisioningOperation

type ProvisioningOperation struct {
	Operation `json:"-"`

	// following fields are serialized to JSON and stored in the storage
	Lms                    LMS    `json:"lms"`
	ProvisioningParameters string `json:"provisioning_parameters"`

	// following fields are not stored in the storage
	InputCreator ProvisionInputCreator `json:"-"`

	Avs AvsLifecycleData `json:"avs"`
}

ProvisioningOperation holds all information about provisioning operation

func NewProvisioningOperation

func NewProvisioningOperation(instanceID string, parameters ProvisioningParameters) (ProvisioningOperation, error)

NewProvisioningOperation creates a fresh (just starting) instance of the ProvisioningOperation

func NewProvisioningOperationWithID

func NewProvisioningOperationWithID(operationID, instanceID string, parameters ProvisioningParameters) (ProvisioningOperation, error)

NewProvisioningOperationWithID creates a fresh (just starting) instance of the ProvisioningOperation with provided ID

func (*ProvisioningOperation) GetProvisioningParameters

func (po *ProvisioningOperation) GetProvisioningParameters() (ProvisioningParameters, error)

func (*ProvisioningOperation) SetProvisioningParameters

func (po *ProvisioningOperation) SetProvisioningParameters(parameters ProvisioningParameters) error

type ProvisioningParameters

type ProvisioningParameters struct {
	PlanID     string                    `json:"plan_id"`
	ServiceID  string                    `json:"service_id"`
	ErsContext ERSContext                `json:"ers_context"`
	Parameters ProvisioningParametersDTO `json:"parameters"`

	// PlatformRegion defines the Platform region send in the request path, terminology:
	//  - `Platform` is a place where KEB is registered and which later sends request to KEB.
	//  - `Region` value is use e.g. for billing integration such as EDP.
	PlatformRegion string `json:"platform_region"`
}

func (ProvisioningParameters) IsEqual

type ProvisioningParametersDTO

type ProvisioningParametersDTO struct {
	Name                        string   `json:"name"`
	TargetSecret                *string  `json:"targetSecret"`
	VolumeSizeGb                *int     `json:"volumeSizeGb"`
	MachineType                 *string  `json:"machineType"`
	Region                      *string  `json:"region"`
	Zone                        *string  `json:"zone"`
	AutoScalerMin               *int     `json:"autoScalerMin"`
	AutoScalerMax               *int     `json:"autoScalerMax"`
	MaxSurge                    *int     `json:"maxSurge"`
	MaxUnavailable              *int     `json:"maxUnavailable"`
	OptionalComponentsToInstall []string `json:"components"`
	KymaVersion                 string   `json:"kymaVersion"`
}

type ServiceManagerBasicAuth

type ServiceManagerBasicAuth struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type ServiceManagerCredentials

type ServiceManagerCredentials struct {
	BasicAuth ServiceManagerBasicAuth `json:"basic"`
}

type ServiceManagerEntryDTO

type ServiceManagerEntryDTO struct {
	Credentials ServiceManagerCredentials `json:"credentials"`
	URL         string                    `json:"url"`
}

Directories

Path Synopsis
Package appinfo is responsible for defining REST endpoints which are serving overall information about created and managed resources e.g.
Package appinfo is responsible for defining REST endpoints which are serving overall information about created and managed resources e.g.
Currently added in this package to be able to access plans schemas.
Currently added in this package to be able to access plans schemas.
This package provides a syntactic sugar and helper functions to make http things easier to read or to express
This package provides a syntactic sugar and helper functions to make http things easier to read or to express
ias
lms
automock
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
Package copied from https://github.com/kyma-project/kyma/blob/1.11.0/components/service-binding-usage-controller/internal/platform/logger/spy/logger.go Only Reset() method was added.
Package copied from https://github.com/kyma-project/kyma/blob/1.11.0/components/service-binding-usage-controller/internal/platform/logger/spy/logger.go Only Reset() method was added.
This package is NOT FOR PRODUCTION USE CASE.
This package is NOT FOR PRODUCTION USE CASE.

Jump to

Keyboard shortcuts

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