-
Notifications
You must be signed in to change notification settings - Fork 83
/
types.go
58 lines (50 loc) · 1.25 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// Copyright (c) 2019-2023 Red Hat, Inc.
// This program and the accompanying materials are made
// available under the terms of the Eclipse Public License 2.0
// which is available at https://www.eclipse.org/legal/epl-2.0/
//
// SPDX-License-Identifier: EPL-2.0
//
// Contributors:
// Red Hat, Inc. - initial API and implementation
//
package chetypes
import (
chev2 "github.com/eclipse-che/che-operator/api/v2"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/discovery"
"sigs.k8s.io/controller-runtime/pkg/client"
)
type ProvisioningStatus struct {
Continue bool
Requeue bool
Err error
}
type DeployContext struct {
CheCluster *chev2.CheCluster
ClusterAPI ClusterAPI
Proxy *Proxy
IsSelfSignedCertificate bool
CheHost string
}
type ClusterAPI struct {
Client client.Client
NonCachingClient client.Client
DiscoveryClient discovery.DiscoveryInterface
Scheme *runtime.Scheme
}
type Proxy struct {
HttpProxy string
HttpUser string
HttpPassword string
HttpHost string
HttpPort string
HttpsProxy string
HttpsUser string
HttpsPassword string
HttpsHost string
HttpsPort string
NoProxy string
TrustedCAMapName string
}