gqlschema

package
v0.0.0-...-d902cc3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 17 Imported by: 33

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type AWSProviderConfig

type AWSProviderConfig struct {
	AwsZones     []*AWSZone `json:"awsZones"`
	VpcCidr      *string    `json:"vpcCidr,omitempty"`
	EnableIMDSv2 *bool      `json:"enableIMDSv2,omitempty"`
}

func (AWSProviderConfig) IsProviderSpecificConfig

func (AWSProviderConfig) IsProviderSpecificConfig()

type AWSProviderConfigInput

type AWSProviderConfigInput struct {
	VpcCidr      string          `json:"vpcCidr"`
	AwsZones     []*AWSZoneInput `json:"awsZones"`
	EnableIMDSv2 *bool           `json:"enableIMDSv2,omitempty"`
}

type AWSZone

type AWSZone struct {
	Name         *string `json:"name,omitempty"`
	PublicCidr   *string `json:"publicCidr,omitempty"`
	InternalCidr *string `json:"internalCidr,omitempty"`
	WorkerCidr   *string `json:"workerCidr,omitempty"`
}

type AWSZoneInput

type AWSZoneInput struct {
	Name         string `json:"name"`
	PublicCidr   string `json:"publicCidr"`
	InternalCidr string `json:"internalCidr"`
	WorkerCidr   string `json:"workerCidr"`
}

type AzureProviderConfig

type AzureProviderConfig struct {
	VnetCidr                     *string      `json:"vnetCidr,omitempty"`
	Zones                        []string     `json:"zones,omitempty"`
	AzureZones                   []*AzureZone `json:"azureZones,omitempty"`
	EnableNatGateway             *bool        `json:"enableNatGateway,omitempty"`
	IdleConnectionTimeoutMinutes *int         `json:"idleConnectionTimeoutMinutes,omitempty"`
}

func (AzureProviderConfig) IsProviderSpecificConfig

func (AzureProviderConfig) IsProviderSpecificConfig()

type AzureProviderConfigInput

type AzureProviderConfigInput struct {
	VnetCidr                     string            `json:"vnetCidr"`
	Zones                        []string          `json:"zones,omitempty"`
	AzureZones                   []*AzureZoneInput `json:"azureZones,omitempty"`
	EnableNatGateway             *bool             `json:"enableNatGateway,omitempty"`
	IdleConnectionTimeoutMinutes *int              `json:"idleConnectionTimeoutMinutes,omitempty"`
}

type AzureZone

type AzureZone struct {
	Name int    `json:"name"`
	Cidr string `json:"cidr"`
}

type AzureZoneInput

type AzureZoneInput struct {
	Name int    `json:"name"`
	Cidr string `json:"cidr"`
}

type ClusterConfigInput

type ClusterConfigInput struct {
	GardenerConfig *GardenerConfigInput `json:"gardenerConfig"`
	Administrators []string             `json:"administrators,omitempty"`
}

type ComplexityRoot

type ComplexityRoot struct {
	AWSProviderConfig struct {
		AwsZones     func(childComplexity int) int
		EnableIMDSv2 func(childComplexity int) int
		VpcCidr      func(childComplexity int) int
	}

	AWSZone struct {
		InternalCidr func(childComplexity int) int
		Name         func(childComplexity int) int
		PublicCidr   func(childComplexity int) int
		WorkerCidr   func(childComplexity int) int
	}

	AzureProviderConfig struct {
		AzureZones                   func(childComplexity int) int
		EnableNatGateway             func(childComplexity int) int
		IdleConnectionTimeoutMinutes func(childComplexity int) int
		VnetCidr                     func(childComplexity int) int
		Zones                        func(childComplexity int) int
	}

	AzureZone struct {
		Cidr func(childComplexity int) int
		Name func(childComplexity int) int
	}

	ComponentConfiguration struct {
		Component     func(childComplexity int) int
		Configuration func(childComplexity int) int
		Namespace     func(childComplexity int) int
		SourceURL     func(childComplexity int) int
	}

	ConfigEntry struct {
		Key    func(childComplexity int) int
		Secret func(childComplexity int) int
		Value  func(childComplexity int) int
	}

	DNSConfig struct {
		Domain    func(childComplexity int) int
		Providers func(childComplexity int) int
	}

	DNSProvider struct {
		DomainsInclude func(childComplexity int) int
		Primary        func(childComplexity int) int
		SecretName     func(childComplexity int) int
		Type           func(childComplexity int) int
	}

	Error struct {
		Message func(childComplexity int) int
	}

	GCPProviderConfig struct {
		Zones func(childComplexity int) int
	}

	GardenerConfig struct {
		AutoScalerMax                       func(childComplexity int) int
		AutoScalerMin                       func(childComplexity int) int
		ControlPlaneFailureTolerance        func(childComplexity int) int
		DNSConfig                           func(childComplexity int) int
		DiskType                            func(childComplexity int) int
		EnableKubernetesVersionAutoUpdate   func(childComplexity int) int
		EnableMachineImageVersionAutoUpdate func(childComplexity int) int
		EuAccess                            func(childComplexity int) int
		ExposureClassName                   func(childComplexity int) int
		KubernetesVersion                   func(childComplexity int) int
		LicenceType                         func(childComplexity int) int
		MachineImage                        func(childComplexity int) int
		MachineImageVersion                 func(childComplexity int) int
		MachineType                         func(childComplexity int) int
		MaxSurge                            func(childComplexity int) int
		MaxUnavailable                      func(childComplexity int) int
		Name                                func(childComplexity int) int
		OidcConfig                          func(childComplexity int) int
		PodsCidr                            func(childComplexity int) int
		Provider                            func(childComplexity int) int
		ProviderSpecificConfig              func(childComplexity int) int
		Purpose                             func(childComplexity int) int
		Region                              func(childComplexity int) int
		Seed                                func(childComplexity int) int
		ServicesCidr                        func(childComplexity int) int
		ShootNetworkingFilterDisabled       func(childComplexity int) int
		TargetSecret                        func(childComplexity int) int
		VolumeSizeGb                        func(childComplexity int) int
		WorkerCidr                          func(childComplexity int) int
	}

	HibernationStatus struct {
		Hibernated          func(childComplexity int) int
		HibernationPossible func(childComplexity int) int
	}

	KymaConfig struct {
		Components    func(childComplexity int) int
		Configuration func(childComplexity int) int
		Profile       func(childComplexity int) int
		Version       func(childComplexity int) int
	}

	LastError struct {
		Component  func(childComplexity int) int
		ErrMessage func(childComplexity int) int
		Reason     func(childComplexity int) int
	}

	Mutation struct {
		DeprovisionRuntime       func(childComplexity int, id string) int
		HibernateRuntime         func(childComplexity int, id string) int
		ProvisionRuntime         func(childComplexity int, config ProvisionRuntimeInput) int
		ReconnectRuntimeAgent    func(childComplexity int, id string) int
		RollBackUpgradeOperation func(childComplexity int, id string) int
		UpgradeRuntime           func(childComplexity int, id string, config UpgradeRuntimeInput) int
		UpgradeShoot             func(childComplexity int, id string, config UpgradeShootInput) int
	}

	OIDCConfig struct {
		ClientID       func(childComplexity int) int
		GroupsClaim    func(childComplexity int) int
		IssuerURL      func(childComplexity int) int
		SigningAlgs    func(childComplexity int) int
		UsernameClaim  func(childComplexity int) int
		UsernamePrefix func(childComplexity int) int
	}

	OpenStackProviderConfig struct {
		CloudProfileName     func(childComplexity int) int
		FloatingPoolName     func(childComplexity int) int
		LoadBalancerProvider func(childComplexity int) int
		Zones                func(childComplexity int) int
	}

	OperationStatus struct {
		CompassRuntimeID func(childComplexity int) int
		ID               func(childComplexity int) int
		LastError        func(childComplexity int) int
		Message          func(childComplexity int) int
		Operation        func(childComplexity int) int
		RuntimeID        func(childComplexity int) int
		State            func(childComplexity int) int
	}

	Query struct {
		RuntimeOperationStatus func(childComplexity int, id string) int
		RuntimeStatus          func(childComplexity int, id string) int
	}

	RuntimeConfig struct {
		ClusterConfig func(childComplexity int) int
		Kubeconfig    func(childComplexity int) int
		KymaConfig    func(childComplexity int) int
	}

	RuntimeConnectionStatus struct {
		Errors func(childComplexity int) int
		Status func(childComplexity int) int
	}

	RuntimeStatus struct {
		HibernationStatus       func(childComplexity int) int
		LastOperationStatus     func(childComplexity int) int
		RuntimeConfiguration    func(childComplexity int) int
		RuntimeConnectionStatus func(childComplexity int) int
	}
}

type ComponentConfiguration

type ComponentConfiguration struct {
	Component     string         `json:"component"`
	Namespace     string         `json:"namespace"`
	Configuration []*ConfigEntry `json:"configuration,omitempty"`
	SourceURL     *string        `json:"sourceURL,omitempty"`
}

type ComponentConfigurationInput

type ComponentConfigurationInput struct {
	Component        string              `json:"component"`
	Namespace        string              `json:"namespace"`
	Configuration    []*ConfigEntryInput `json:"configuration,omitempty"`
	SourceURL        *string             `json:"sourceURL,omitempty"`
	ConflictStrategy *ConflictStrategy   `json:"conflictStrategy,omitempty"`
}

type Config

type Config struct {
	Schema     *ast.Schema
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type ConfigEntry

type ConfigEntry struct {
	Key    string `json:"key"`
	Value  string `json:"value"`
	Secret *bool  `json:"secret,omitempty"`
}

type ConfigEntryInput

type ConfigEntryInput struct {
	Key    string `json:"key"`
	Value  string `json:"value"`
	Secret *bool  `json:"secret,omitempty"`
}

type ConflictStrategy

type ConflictStrategy string
const (
	ConflictStrategyMerge   ConflictStrategy = "Merge"
	ConflictStrategyReplace ConflictStrategy = "Replace"
)

func (ConflictStrategy) IsValid

func (e ConflictStrategy) IsValid() bool

func (ConflictStrategy) MarshalGQL

func (e ConflictStrategy) MarshalGQL(w io.Writer)

func (ConflictStrategy) String

func (e ConflictStrategy) String() string

func (*ConflictStrategy) UnmarshalGQL

func (e *ConflictStrategy) UnmarshalGQL(v interface{}) error

type DNSConfig

type DNSConfig struct {
	Domain    string         `json:"domain"`
	Providers []*DNSProvider `json:"providers,omitempty"`
}

type DNSConfigInput

type DNSConfigInput struct {
	Domain    string              `json:"domain"`
	Providers []*DNSProviderInput `json:"providers,omitempty"`
}

type DNSProvider

type DNSProvider struct {
	DomainsInclude []string `json:"domainsInclude"`
	Primary        bool     `json:"primary"`
	SecretName     string   `json:"secretName"`
	Type           string   `json:"type"`
}

type DNSProviderInput

type DNSProviderInput struct {
	DomainsInclude []string `json:"domainsInclude"`
	Primary        bool     `json:"primary"`
	SecretName     string   `json:"secretName"`
	Type           string   `json:"type"`
}

type DirectiveRoot

type DirectiveRoot struct {
}

type Error

type Error struct {
	Message *string `json:"message,omitempty"`
}

type GCPProviderConfig

type GCPProviderConfig struct {
	Zones []string `json:"zones"`
}

func (GCPProviderConfig) IsProviderSpecificConfig

func (GCPProviderConfig) IsProviderSpecificConfig()

type GCPProviderConfigInput

type GCPProviderConfigInput struct {
	Zones []string `json:"zones"`
}

type GardenerConfig

type GardenerConfig struct {
	Name                                *string                `json:"name,omitempty"`
	KubernetesVersion                   *string                `json:"kubernetesVersion,omitempty"`
	TargetSecret                        *string                `json:"targetSecret,omitempty"`
	Provider                            *string                `json:"provider,omitempty"`
	Region                              *string                `json:"region,omitempty"`
	Seed                                *string                `json:"seed,omitempty"`
	MachineType                         *string                `json:"machineType,omitempty"`
	MachineImage                        *string                `json:"machineImage,omitempty"`
	MachineImageVersion                 *string                `json:"machineImageVersion,omitempty"`
	DiskType                            *string                `json:"diskType,omitempty"`
	VolumeSizeGb                        *int                   `json:"volumeSizeGB,omitempty"`
	WorkerCidr                          *string                `json:"workerCidr,omitempty"`
	PodsCidr                            *string                `json:"podsCidr,omitempty"`
	ServicesCidr                        *string                `json:"servicesCidr,omitempty"`
	AutoScalerMin                       *int                   `json:"autoScalerMin,omitempty"`
	AutoScalerMax                       *int                   `json:"autoScalerMax,omitempty"`
	MaxSurge                            *int                   `json:"maxSurge,omitempty"`
	MaxUnavailable                      *int                   `json:"maxUnavailable,omitempty"`
	Purpose                             *string                `json:"purpose,omitempty"`
	LicenceType                         *string                `json:"licenceType,omitempty"`
	EnableKubernetesVersionAutoUpdate   *bool                  `json:"enableKubernetesVersionAutoUpdate,omitempty"`
	EnableMachineImageVersionAutoUpdate *bool                  `json:"enableMachineImageVersionAutoUpdate,omitempty"`
	ProviderSpecificConfig              ProviderSpecificConfig `json:"providerSpecificConfig,omitempty"`
	DNSConfig                           *DNSConfig             `json:"dnsConfig,omitempty"`
	OidcConfig                          *OIDCConfig            `json:"oidcConfig,omitempty"`
	ExposureClassName                   *string                `json:"exposureClassName,omitempty"`
	ShootNetworkingFilterDisabled       *bool                  `json:"shootNetworkingFilterDisabled,omitempty"`
	ControlPlaneFailureTolerance        *string                `json:"controlPlaneFailureTolerance,omitempty"`
	EuAccess                            *bool                  `json:"euAccess,omitempty"`
}

func (*GardenerConfig) UnmarshalJSON

func (g *GardenerConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON is used to handle unmarshaling ProviderSpecificConfig interface properly

type GardenerConfigInput

type GardenerConfigInput struct {
	Name                                string                 `json:"name"`
	KubernetesVersion                   string                 `json:"kubernetesVersion"`
	Provider                            string                 `json:"provider"`
	TargetSecret                        string                 `json:"targetSecret"`
	Region                              string                 `json:"region"`
	MachineType                         string                 `json:"machineType"`
	MachineImage                        *string                `json:"machineImage,omitempty"`
	MachineImageVersion                 *string                `json:"machineImageVersion,omitempty"`
	DiskType                            *string                `json:"diskType,omitempty"`
	VolumeSizeGb                        *int                   `json:"volumeSizeGB,omitempty"`
	WorkerCidr                          string                 `json:"workerCidr"`
	PodsCidr                            *string                `json:"podsCidr,omitempty"`
	ServicesCidr                        *string                `json:"servicesCidr,omitempty"`
	AutoScalerMin                       int                    `json:"autoScalerMin"`
	AutoScalerMax                       int                    `json:"autoScalerMax"`
	MaxSurge                            int                    `json:"maxSurge"`
	MaxUnavailable                      int                    `json:"maxUnavailable"`
	Purpose                             *string                `json:"purpose,omitempty"`
	LicenceType                         *string                `json:"licenceType,omitempty"`
	EnableKubernetesVersionAutoUpdate   *bool                  `json:"enableKubernetesVersionAutoUpdate,omitempty"`
	EnableMachineImageVersionAutoUpdate *bool                  `json:"enableMachineImageVersionAutoUpdate,omitempty"`
	ProviderSpecificConfig              *ProviderSpecificInput `json:"providerSpecificConfig"`
	DNSConfig                           *DNSConfigInput        `json:"dnsConfig,omitempty"`
	Seed                                *string                `json:"seed,omitempty"`
	OidcConfig                          *OIDCConfigInput       `json:"oidcConfig,omitempty"`
	ExposureClassName                   *string                `json:"exposureClassName,omitempty"`
	ShootNetworkingFilterDisabled       *bool                  `json:"shootNetworkingFilterDisabled,omitempty"`
	ControlPlaneFailureTolerance        *string                `json:"controlPlaneFailureTolerance,omitempty"`
	EuAccess                            *bool                  `json:"euAccess,omitempty"`
	ShootAndSeedSameRegion              *bool                  `json:"shootAndSeedSameRegion,omitempty"`
}

type GardenerUpgradeInput

type GardenerUpgradeInput struct {
	KubernetesVersion                   *string                `json:"kubernetesVersion,omitempty"`
	MachineType                         *string                `json:"machineType,omitempty"`
	DiskType                            *string                `json:"diskType,omitempty"`
	VolumeSizeGb                        *int                   `json:"volumeSizeGB,omitempty"`
	AutoScalerMin                       *int                   `json:"autoScalerMin,omitempty"`
	AutoScalerMax                       *int                   `json:"autoScalerMax,omitempty"`
	MachineImage                        *string                `json:"machineImage,omitempty"`
	MachineImageVersion                 *string                `json:"machineImageVersion,omitempty"`
	MaxSurge                            *int                   `json:"maxSurge,omitempty"`
	MaxUnavailable                      *int                   `json:"maxUnavailable,omitempty"`
	Purpose                             *string                `json:"purpose,omitempty"`
	EnableKubernetesVersionAutoUpdate   *bool                  `json:"enableKubernetesVersionAutoUpdate,omitempty"`
	EnableMachineImageVersionAutoUpdate *bool                  `json:"enableMachineImageVersionAutoUpdate,omitempty"`
	ProviderSpecificConfig              *ProviderSpecificInput `json:"providerSpecificConfig,omitempty"`
	OidcConfig                          *OIDCConfigInput       `json:"oidcConfig,omitempty"`
	ExposureClassName                   *string                `json:"exposureClassName,omitempty"`
	ShootNetworkingFilterDisabled       *bool                  `json:"shootNetworkingFilterDisabled,omitempty"`
}

type HibernationStatus

type HibernationStatus struct {
	Hibernated          *bool `json:"hibernated,omitempty"`
	HibernationPossible *bool `json:"hibernationPossible,omitempty"`
}

type KymaConfig

type KymaConfig struct {
	Version       *string                   `json:"version,omitempty"`
	Profile       *KymaProfile              `json:"profile,omitempty"`
	Components    []*ComponentConfiguration `json:"components,omitempty"`
	Configuration []*ConfigEntry            `json:"configuration,omitempty"`
}

type KymaConfigInput

type KymaConfigInput struct {
	Version          string                         `json:"version"`
	Profile          *KymaProfile                   `json:"profile,omitempty"`
	Components       []*ComponentConfigurationInput `json:"components"`
	Configuration    []*ConfigEntryInput            `json:"configuration,omitempty"`
	ConflictStrategy *ConflictStrategy              `json:"conflictStrategy,omitempty"`
}

type KymaProfile

type KymaProfile string
const (
	KymaProfileEvaluation KymaProfile = "Evaluation"
	KymaProfileProduction KymaProfile = "Production"
)

func (KymaProfile) IsValid

func (e KymaProfile) IsValid() bool

func (KymaProfile) MarshalGQL

func (e KymaProfile) MarshalGQL(w io.Writer)

func (KymaProfile) String

func (e KymaProfile) String() string

func (*KymaProfile) UnmarshalGQL

func (e *KymaProfile) UnmarshalGQL(v interface{}) error

type Labels

type Labels map[string]interface{}

func (Labels) MarshalGQL

func (y Labels) MarshalGQL(w io.Writer)

func (*Labels) UnmarshalGQL

func (y *Labels) UnmarshalGQL(v interface{}) error

type LastError

type LastError struct {
	ErrMessage string `json:"errMessage"`
	Reason     string `json:"reason"`
	Component  string `json:"component"`
}

type Mutation

type Mutation struct {
}

type MutationResolver

type MutationResolver interface {
	ProvisionRuntime(ctx context.Context, config ProvisionRuntimeInput) (*OperationStatus, error)
	UpgradeRuntime(ctx context.Context, id string, config UpgradeRuntimeInput) (*OperationStatus, error)
	DeprovisionRuntime(ctx context.Context, id string) (string, error)
	UpgradeShoot(ctx context.Context, id string, config UpgradeShootInput) (*OperationStatus, error)
	HibernateRuntime(ctx context.Context, id string) (*OperationStatus, error)
	RollBackUpgradeOperation(ctx context.Context, id string) (*RuntimeStatus, error)
	ReconnectRuntimeAgent(ctx context.Context, id string) (string, error)
}

type OIDCConfig

type OIDCConfig struct {
	ClientID       string   `json:"clientID"`
	GroupsClaim    string   `json:"groupsClaim"`
	IssuerURL      string   `json:"issuerURL"`
	SigningAlgs    []string `json:"signingAlgs"`
	UsernameClaim  string   `json:"usernameClaim"`
	UsernamePrefix string   `json:"usernamePrefix"`
}

type OIDCConfigInput

type OIDCConfigInput struct {
	ClientID       string   `json:"clientID"`
	GroupsClaim    string   `json:"groupsClaim"`
	IssuerURL      string   `json:"issuerURL"`
	SigningAlgs    []string `json:"signingAlgs"`
	UsernameClaim  string   `json:"usernameClaim"`
	UsernamePrefix string   `json:"usernamePrefix"`
}

type OpenStackProviderConfig

type OpenStackProviderConfig struct {
	Zones                []string `json:"zones"`
	FloatingPoolName     string   `json:"floatingPoolName"`
	CloudProfileName     string   `json:"cloudProfileName"`
	LoadBalancerProvider string   `json:"loadBalancerProvider"`
}

func (OpenStackProviderConfig) IsProviderSpecificConfig

func (OpenStackProviderConfig) IsProviderSpecificConfig()

type OpenStackProviderConfigInput

type OpenStackProviderConfigInput struct {
	Zones                []string `json:"zones"`
	FloatingPoolName     *string  `json:"floatingPoolName,omitempty"`
	CloudProfileName     *string  `json:"cloudProfileName,omitempty"`
	LoadBalancerProvider string   `json:"loadBalancerProvider"`
}

type OperationState

type OperationState string
const (
	OperationStatePending    OperationState = "Pending"
	OperationStateInProgress OperationState = "InProgress"
	OperationStateSucceeded  OperationState = "Succeeded"
	OperationStateFailed     OperationState = "Failed"
)

func (OperationState) IsValid

func (e OperationState) IsValid() bool

func (OperationState) MarshalGQL

func (e OperationState) MarshalGQL(w io.Writer)

func (OperationState) String

func (e OperationState) String() string

func (*OperationState) UnmarshalGQL

func (e *OperationState) UnmarshalGQL(v interface{}) error

type OperationStatus

type OperationStatus struct {
	ID               *string        `json:"id,omitempty"`
	Operation        OperationType  `json:"operation"`
	State            OperationState `json:"state"`
	Message          *string        `json:"message,omitempty"`
	RuntimeID        *string        `json:"runtimeID,omitempty"`
	CompassRuntimeID *string        `json:"compassRuntimeID,omitempty"`
	LastError        *LastError     `json:"lastError,omitempty"`
}

type OperationType

type OperationType string
const (
	OperationTypeProvision            OperationType = "Provision"
	OperationTypeProvisionNoInstall   OperationType = "ProvisionNoInstall"
	OperationTypeUpgrade              OperationType = "Upgrade"
	OperationTypeUpgradeShoot         OperationType = "UpgradeShoot"
	OperationTypeDeprovision          OperationType = "Deprovision"
	OperationTypeDeprovisionNoInstall OperationType = "DeprovisionNoInstall"
	OperationTypeReconnectRuntime     OperationType = "ReconnectRuntime"
	OperationTypeHibernate            OperationType = "Hibernate"
)

func (OperationType) IsValid

func (e OperationType) IsValid() bool

func (OperationType) MarshalGQL

func (e OperationType) MarshalGQL(w io.Writer)

func (OperationType) String

func (e OperationType) String() string

func (*OperationType) UnmarshalGQL

func (e *OperationType) UnmarshalGQL(v interface{}) error

type ProviderSpecificConfig

type ProviderSpecificConfig interface {
	IsProviderSpecificConfig()
}

type ProviderSpecificInput

type ProviderSpecificInput struct {
	GcpConfig       *GCPProviderConfigInput       `json:"gcpConfig,omitempty"`
	AzureConfig     *AzureProviderConfigInput     `json:"azureConfig,omitempty"`
	AwsConfig       *AWSProviderConfigInput       `json:"awsConfig,omitempty"`
	OpenStackConfig *OpenStackProviderConfigInput `json:"openStackConfig,omitempty"`
}

type ProvisionRuntimeInput

type ProvisionRuntimeInput struct {
	RuntimeInput  *RuntimeInput       `json:"runtimeInput"`
	ClusterConfig *ClusterConfigInput `json:"clusterConfig"`
	KymaConfig    *KymaConfigInput    `json:"kymaConfig,omitempty"`
}

type Query

type Query struct {
}

type QueryResolver

type QueryResolver interface {
	RuntimeStatus(ctx context.Context, id string) (*RuntimeStatus, error)
	RuntimeOperationStatus(ctx context.Context, id string) (*OperationStatus, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
}

type RuntimeAgentConnectionStatus

type RuntimeAgentConnectionStatus string
const (
	RuntimeAgentConnectionStatusPending      RuntimeAgentConnectionStatus = "Pending"
	RuntimeAgentConnectionStatusConnected    RuntimeAgentConnectionStatus = "Connected"
	RuntimeAgentConnectionStatusDisconnected RuntimeAgentConnectionStatus = "Disconnected"
)

func (RuntimeAgentConnectionStatus) IsValid

func (e RuntimeAgentConnectionStatus) IsValid() bool

func (RuntimeAgentConnectionStatus) MarshalGQL

func (e RuntimeAgentConnectionStatus) MarshalGQL(w io.Writer)

func (RuntimeAgentConnectionStatus) String

func (*RuntimeAgentConnectionStatus) UnmarshalGQL

func (e *RuntimeAgentConnectionStatus) UnmarshalGQL(v interface{}) error

type RuntimeConfig

type RuntimeConfig struct {
	ClusterConfig *GardenerConfig `json:"clusterConfig,omitempty"`
	KymaConfig    *KymaConfig     `json:"kymaConfig,omitempty"`
	Kubeconfig    *string         `json:"kubeconfig,omitempty"`
}

type RuntimeConnectionStatus

type RuntimeConnectionStatus struct {
	Status RuntimeAgentConnectionStatus `json:"status"`
	Errors []*Error                     `json:"errors,omitempty"`
}

type RuntimeInput

type RuntimeInput struct {
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
	Labels      Labels  `json:"labels,omitempty"`
}

type RuntimeStatus

type RuntimeStatus struct {
	LastOperationStatus     *OperationStatus         `json:"lastOperationStatus,omitempty"`
	RuntimeConnectionStatus *RuntimeConnectionStatus `json:"runtimeConnectionStatus,omitempty"`
	RuntimeConfiguration    *RuntimeConfig           `json:"runtimeConfiguration,omitempty"`
	HibernationStatus       *HibernationStatus       `json:"hibernationStatus,omitempty"`
}

type UpgradeRuntimeInput

type UpgradeRuntimeInput struct {
	KymaConfig *KymaConfigInput `json:"kymaConfig"`
}

type UpgradeShootInput

type UpgradeShootInput struct {
	GardenerConfig *GardenerUpgradeInput `json:"gardenerConfig"`
	Administrators []string              `json:"administrators,omitempty"`
}

Jump to

Keyboard shortcuts

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