proxyv1alpha1

package
v0.15.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "proxy.f110.dev"

Variables

View Source
var (
	GroupVersion       = metav1.GroupVersion{Group: GroupName, Version: "v1alpha1"}
	SchemeBuilder      = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme        = SchemeBuilder.AddToScheme
	SchemaGroupVersion = schema.GroupVersion{Group: "proxy.f110.dev", Version: "v1alpha1"}
)

Functions

This section is empty.

Types

type Backend

type Backend struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              BackendSpec   `json:"spec"`
	Status            BackendStatus `json:"status"`
}

func (*Backend) DeepCopy

func (in *Backend) DeepCopy() *Backend

func (*Backend) DeepCopyInto

func (in *Backend) DeepCopyInto(out *Backend)

func (*Backend) DeepCopyObject

func (in *Backend) DeepCopyObject() runtime.Object

type BackendList

type BackendList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Backend `json:"items"`
}

func (*BackendList) DeepCopy

func (in *BackendList) DeepCopy() *BackendList

func (*BackendList) DeepCopyInto

func (in *BackendList) DeepCopyInto(out *BackendList)

func (*BackendList) DeepCopyObject

func (in *BackendList) DeepCopyObject() runtime.Object

type BackendSpec

type BackendSpec struct {
	FQDN                 string                `json:"fqdn,omitempty"`
	Layer                string                `json:"layer,omitempty"`
	Upstream             string                `json:"upstream,omitempty"`
	SocketTimeout        *metav1.Duration      `json:"socketTimeout,omitempty"`
	ServiceSelector      *ServiceSelector      `json:"serviceSelector,omitempty"`
	Webhook              string                `json:"webhook,omitempty"`
	WebhookPath          []string              `json:"webhookPath"`
	AllowRootUser        bool                  `json:"allowRootUser,omitempty"`
	Agent                bool                  `json:"agent,omitempty"`
	Socket               bool                  `json:"socket,omitempty"`
	DisableAuthn         bool                  `json:"disableAuthn,omitempty"`
	Insecure             bool                  `json:"insecure,omitempty"`
	AllowHttp            bool                  `json:"allowHttp,omitempty"`
	Permissions          []Permission          `json:"permissions"`
	WebhookConfiguration *WebhookConfiguration `json:"webhookConfiguration,omitempty"`
	MaxSessionDuration   *metav1.Duration      `json:"maxSessionDuration,omitempty"`
}

func (*BackendSpec) DeepCopy

func (in *BackendSpec) DeepCopy() *BackendSpec

func (*BackendSpec) DeepCopyInto

func (in *BackendSpec) DeepCopyInto(out *BackendSpec)

type BackendStatus

type BackendStatus struct {
	DeployedBy            []ProxyReference             `json:"deployedBy"`
	WebhookConfigurations []WebhookConfigurationStatus `json:"webhookConfigurations"`
}

func (*BackendStatus) DeepCopy

func (in *BackendStatus) DeepCopy() *BackendStatus

func (*BackendStatus) DeepCopyInto

func (in *BackendStatus) DeepCopyInto(out *BackendStatus)

type BackupSpec

type BackupSpec struct {
	IntervalInSecond int64          `json:"intervalInSecond"`
	MaxBackups       int            `json:"maxBackups,omitempty"`
	Bucket           string         `json:"bucket"`
	Path             string         `json:"path"`
	CredentialRef    SecretSelector `json:"credentialRef"`
	Endpoint         string         `json:"endpoint,omitempty"`
}

func (*BackupSpec) DeepCopy

func (in *BackupSpec) DeepCopy() *BackupSpec

func (*BackupSpec) DeepCopyInto

func (in *BackupSpec) DeepCopyInto(out *BackupSpec)

type DefragmentSpec

type DefragmentSpec struct {
	Schedule string `json:"schedule,omitempty"`
}

func (*DefragmentSpec) DeepCopy

func (in *DefragmentSpec) DeepCopy() *DefragmentSpec

func (*DefragmentSpec) DeepCopyInto

func (in *DefragmentSpec) DeepCopyInto(out *DefragmentSpec)

type GitHubHookConfiguration

type GitHubHookConfiguration struct {
	Repositories              []string `json:"repositories"`
	Path                      string   `json:"path,omitempty"`
	Events                    []string `json:"events"`
	ContentType               string   `json:"contentType,omitempty"`
	CredentialSecretName      string   `json:"credentialSecretName,omitempty"`
	CredentialSecretNamespace string   `json:"credentialSecretNamespace,omitempty"`
	AppIdKey                  string   `json:"appIdKey,omitempty"`
	InstallationIdKey         string   `json:"installationIdKey,omitempty"`
	PrivateKeyKey             string   `json:"privateKeyKey,omitempty"`
}

func (*GitHubHookConfiguration) DeepCopy

func (*GitHubHookConfiguration) DeepCopyInto

func (in *GitHubHookConfiguration) DeepCopyInto(out *GitHubHookConfiguration)

type IdentityProviderSpec

type IdentityProviderSpec struct {
	Provider        string          `json:"provider"`
	ClientId        string          `json:"clientId,omitempty"`
	ClientSecretRef *SecretSelector `json:"clientSecretRef,omitempty"`
	RedirectUrl     string          `json:"redirectUrl,omitempty"`
}

func (*IdentityProviderSpec) DeepCopy

func (*IdentityProviderSpec) DeepCopyInto

func (in *IdentityProviderSpec) DeepCopyInto(out *IdentityProviderSpec)

type LabelSelector

type LabelSelector struct {
	metav1.LabelSelector `json:",inline"`
	Namespace            string `json:"namespace,omitempty"`
}

func (*LabelSelector) DeepCopy

func (in *LabelSelector) DeepCopy() *LabelSelector

func (*LabelSelector) DeepCopyInto

func (in *LabelSelector) DeepCopyInto(out *LabelSelector)

type LabelsEntry

type LabelsEntry struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

func (*LabelsEntry) DeepCopy

func (in *LabelsEntry) DeepCopy() *LabelsEntry

func (*LabelsEntry) DeepCopyInto

func (in *LabelsEntry) DeepCopyInto(out *LabelsEntry)

type Location

type Location struct {
	Any     string `json:"any,omitempty"`
	Get     string `json:"get,omitempty"`
	Post    string `json:"post,omitempty"`
	Put     string `json:"put,omitempty"`
	Delete  string `json:"delete,omitempty"`
	Head    string `json:"head,omitempty"`
	Connect string `json:"connect,omitempty"`
	Options string `json:"options,omitempty"`
	Trace   string `json:"trace,omitempty"`
	Patch   string `json:"patch,omitempty"`
}

func (*Location) DeepCopy

func (in *Location) DeepCopy() *Location

func (*Location) DeepCopyInto

func (in *Location) DeepCopyInto(out *Location)

type MonitorSpec

type MonitorSpec struct {
	PrometheusMonitoring bool              `json:"prometheusMonitoring,omitempty"`
	Labels               map[string]string `json:"labels,omitempty"`
}

func (*MonitorSpec) DeepCopy

func (in *MonitorSpec) DeepCopy() *MonitorSpec

func (*MonitorSpec) DeepCopyInto

func (in *MonitorSpec) DeepCopyInto(out *MonitorSpec)

type Permission

type Permission struct {
	Name      string     `json:"name,omitempty"`
	Locations []Location `json:"locations"`
}

func (*Permission) DeepCopy

func (in *Permission) DeepCopy() *Permission

func (*Permission) DeepCopyInto

func (in *Permission) DeepCopyInto(out *Permission)

type Proxy

type Proxy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              ProxySpec   `json:"spec"`
	Status            ProxyStatus `json:"status"`
}

func (*Proxy) DeepCopy

func (in *Proxy) DeepCopy() *Proxy

func (*Proxy) DeepCopyInto

func (in *Proxy) DeepCopyInto(out *Proxy)

func (*Proxy) DeepCopyObject

func (in *Proxy) DeepCopyObject() runtime.Object

type ProxyDataStoreEtcdSpec

type ProxyDataStoreEtcdSpec struct {
	Version      string          `json:"version,omitempty"`
	Defragment   *DefragmentSpec `json:"defragment,omitempty"`
	AntiAffinity bool            `json:"antiAffinity,omitempty"`
}

func (*ProxyDataStoreEtcdSpec) DeepCopy

func (*ProxyDataStoreEtcdSpec) DeepCopyInto

func (in *ProxyDataStoreEtcdSpec) DeepCopyInto(out *ProxyDataStoreEtcdSpec)

type ProxyDataStoreSpec

type ProxyDataStoreSpec struct {
	Etcd *ProxyDataStoreEtcdSpec `json:"etcd,omitempty"`
}

func (*ProxyDataStoreSpec) DeepCopy

func (in *ProxyDataStoreSpec) DeepCopy() *ProxyDataStoreSpec

func (*ProxyDataStoreSpec) DeepCopyInto

func (in *ProxyDataStoreSpec) DeepCopyInto(out *ProxyDataStoreSpec)

type ProxyList

type ProxyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Proxy `json:"items"`
}

func (*ProxyList) DeepCopy

func (in *ProxyList) DeepCopy() *ProxyList

func (*ProxyList) DeepCopyInto

func (in *ProxyList) DeepCopyInto(out *ProxyList)

func (*ProxyList) DeepCopyObject

func (in *ProxyList) DeepCopyObject() runtime.Object

type ProxyPhase

type ProxyPhase string
const (
	ProxyPhaseCreating ProxyPhase = "Creating"
	ProxyPhaseError    ProxyPhase = "Error"
	ProxyPhaseRunning  ProxyPhase = "Running"
	ProxyPhaseUpdating ProxyPhase = "Updating"
)

type ProxyReference

type ProxyReference struct {
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,omitempty"`
	Url       string `json:"url,omitempty"`
}

func (*ProxyReference) DeepCopy

func (in *ProxyReference) DeepCopy() *ProxyReference

func (*ProxyReference) DeepCopyInto

func (in *ProxyReference) DeepCopyInto(out *ProxyReference)

type ProxySpec

type ProxySpec struct {
	Domain                string                       `json:"domain"`
	Port                  int                          `json:"port,omitempty"`
	HttpPort              int                          `json:"httpPort,omitempty"`
	Version               string                       `json:"version,omitempty"`
	EtcdVersion           string                       `json:"etcdVersion,omitempty"`
	DataStore             *ProxyDataStoreSpec          `json:"dataStore,omitempty"`
	LoadBalancerIP        string                       `json:"loadBalancerIp,omitempty"`
	Name                  string                       `json:"name,omitempty"`
	Organization          string                       `json:"organization,omitempty"`
	AdministratorUnit     string                       `json:"administratorUnit,omitempty"`
	Country               string                       `json:"country,omitempty"`
	IssuerRef             metav1_1.ObjectReference     `json:"issuerRef"`
	IdentityProvider      IdentityProviderSpec         `json:"identityProvider"`
	RootUsers             []string                     `json:"rootUsers"`
	Session               SessionSpec                  `json:"session"`
	Replicas              int                          `json:"replicas"`
	DashboardReplicas     int                          `json:"dashboardReplicas,omitempty"`
	BackendSelector       *LabelSelector               `json:"backendSelector,omitempty"`
	RoleSelector          *LabelSelector               `json:"roleSelector,omitempty"`
	RpcPermissionSelector *LabelSelector               `json:"rpcPermissionSelector,omitempty"`
	Defragment            *DefragmentSpec              `json:"defragment,omitempty"`
	Monitor               *MonitorSpec                 `json:"monitor,omitempty"`
	Backup                *BackupSpec                  `json:"backup,omitempty"`
	ProxyResources        *corev1.ResourceRequirements `json:"proxyResources,omitempty"`
	RPCServerResources    *corev1.ResourceRequirements `json:"rpcServerResources,omitempty"`
	Development           bool                         `json:"development,omitempty"`
}

func (*ProxySpec) DeepCopy

func (in *ProxySpec) DeepCopy() *ProxySpec

func (*ProxySpec) DeepCopyInto

func (in *ProxySpec) DeepCopyInto(out *ProxySpec)

type ProxyStatus

type ProxyStatus struct {
	Ready                       bool       `json:"ready"`
	Phase                       ProxyPhase `json:"phase,omitempty"`
	NumOfBackends               int        `json:"numberOfBackends,omitempty"`
	NumOfRoles                  int        `json:"numberOfRoles,omitempty"`
	NumOfRpcPermissions         int        `json:"numberOfRpcPermissions,omitempty"`
	CASecretName                string     `json:"caSecretName,omitempty"`
	SigningPrivateKeySecretName string     `json:"signingPrivateKeySecretName,omitempty"`
	GithubWebhookSecretName     string     `json:"githubWebhookSecretName,omitempty"`
	CookieSecretName            string     `json:"cookieSecretName,omitempty"`
	InternalTokenSecretName     string     `json:"internalTokenSecretName,omitempty"`
}

func (*ProxyStatus) DeepCopy

func (in *ProxyStatus) DeepCopy() *ProxyStatus

func (*ProxyStatus) DeepCopyInto

func (in *ProxyStatus) DeepCopyInto(out *ProxyStatus)

type Role

type Role struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              RoleSpec   `json:"spec"`
	Status            RoleStatus `json:"status"`
}

func (*Role) DeepCopy

func (in *Role) DeepCopy() *Role

func (*Role) DeepCopyInto

func (in *Role) DeepCopyInto(out *Role)

func (*Role) DeepCopyObject

func (in *Role) DeepCopyObject() runtime.Object

type RoleBinding

type RoleBinding struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Subjects          []Subject `json:"subjects"`
	RoleRef           RoleRef   `json:"roleRef"`
}

func (*RoleBinding) DeepCopy

func (in *RoleBinding) DeepCopy() *RoleBinding

func (*RoleBinding) DeepCopyInto

func (in *RoleBinding) DeepCopyInto(out *RoleBinding)

func (*RoleBinding) DeepCopyObject

func (in *RoleBinding) DeepCopyObject() runtime.Object

type RoleBindingList

type RoleBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []RoleBinding `json:"items"`
}

func (*RoleBindingList) DeepCopy

func (in *RoleBindingList) DeepCopy() *RoleBindingList

func (*RoleBindingList) DeepCopyInto

func (in *RoleBindingList) DeepCopyInto(out *RoleBindingList)

func (*RoleBindingList) DeepCopyObject

func (in *RoleBindingList) DeepCopyObject() runtime.Object

type RoleList

type RoleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Role `json:"items"`
}

func (*RoleList) DeepCopy

func (in *RoleList) DeepCopy() *RoleList

func (*RoleList) DeepCopyInto

func (in *RoleList) DeepCopyInto(out *RoleList)

func (*RoleList) DeepCopyObject

func (in *RoleList) DeepCopyObject() runtime.Object

type RoleRef

type RoleRef struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

func (*RoleRef) DeepCopy

func (in *RoleRef) DeepCopy() *RoleRef

func (*RoleRef) DeepCopyInto

func (in *RoleRef) DeepCopyInto(out *RoleRef)

type RoleSpec

type RoleSpec struct {
	Title          string `json:"title,omitempty"`
	Description    string `json:"description,omitempty"`
	AllowDashboard bool   `json:"allowDashboard,omitempty"`
}

func (*RoleSpec) DeepCopy

func (in *RoleSpec) DeepCopy() *RoleSpec

func (*RoleSpec) DeepCopyInto

func (in *RoleSpec) DeepCopyInto(out *RoleSpec)

type RoleStatus

type RoleStatus struct {
	Spec   RpcPermissionSpec   `json:"spec"`
	Status RpcPermissionStatus `json:"status"`
}

func (*RoleStatus) DeepCopy

func (in *RoleStatus) DeepCopy() *RoleStatus

func (*RoleStatus) DeepCopyInto

func (in *RoleStatus) DeepCopyInto(out *RoleStatus)

type RpcPermission

type RpcPermission struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
}

func (*RpcPermission) DeepCopy

func (in *RpcPermission) DeepCopy() *RpcPermission

func (*RpcPermission) DeepCopyInto

func (in *RpcPermission) DeepCopyInto(out *RpcPermission)

func (*RpcPermission) DeepCopyObject

func (in *RpcPermission) DeepCopyObject() runtime.Object

type RpcPermissionList

type RpcPermissionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []RpcPermission `json:"items"`
}

func (*RpcPermissionList) DeepCopy

func (in *RpcPermissionList) DeepCopy() *RpcPermissionList

func (*RpcPermissionList) DeepCopyInto

func (in *RpcPermissionList) DeepCopyInto(out *RpcPermissionList)

func (*RpcPermissionList) DeepCopyObject

func (in *RpcPermissionList) DeepCopyObject() runtime.Object

type RpcPermissionSpec

type RpcPermissionSpec struct {
	Allow []string `json:"allow"`
}

func (*RpcPermissionSpec) DeepCopy

func (in *RpcPermissionSpec) DeepCopy() *RpcPermissionSpec

func (*RpcPermissionSpec) DeepCopyInto

func (in *RpcPermissionSpec) DeepCopyInto(out *RpcPermissionSpec)

type RpcPermissionStatus

type RpcPermissionStatus struct {
}

func (*RpcPermissionStatus) DeepCopy

func (in *RpcPermissionStatus) DeepCopy() *RpcPermissionStatus

func (*RpcPermissionStatus) DeepCopyInto

func (in *RpcPermissionStatus) DeepCopyInto(out *RpcPermissionStatus)

type SecretSelector

type SecretSelector struct {
	Name string `json:"name"`
	Key  string `json:"key,omitempty"`
}

func (*SecretSelector) DeepCopy

func (in *SecretSelector) DeepCopy() *SecretSelector

func (*SecretSelector) DeepCopyInto

func (in *SecretSelector) DeepCopyInto(out *SecretSelector)

type ServiceSelector

type ServiceSelector struct {
	metav1.LabelSelector `json:",inline"`
	Namespace            string `json:"namespace,omitempty"`
	Name                 string `json:"name,omitempty"`
	Port                 string `json:"port,omitempty"`
	Scheme               string `json:"scheme,omitempty"`
}

func (*ServiceSelector) DeepCopy

func (in *ServiceSelector) DeepCopy() *ServiceSelector

func (*ServiceSelector) DeepCopyInto

func (in *ServiceSelector) DeepCopyInto(out *ServiceSelector)

type SessionSpec

type SessionSpec struct {
	Type         string          `json:"type"`
	KeySecretRef *SecretSelector `json:"keySecretRef,omitempty"`
}

func (*SessionSpec) DeepCopy

func (in *SessionSpec) DeepCopy() *SessionSpec

func (*SessionSpec) DeepCopyInto

func (in *SessionSpec) DeepCopyInto(out *SessionSpec)

type Subject

type Subject struct {
	Kind       string `json:"kind"`
	Name       string `json:"name"`
	Namespace  string `json:"namespace,omitempty"`
	Permission string `json:"permission,omitempty"`
}

func (*Subject) DeepCopy

func (in *Subject) DeepCopy() *Subject

func (*Subject) DeepCopyInto

func (in *Subject) DeepCopyInto(out *Subject)

type WebhookConfiguration

type WebhookConfiguration struct {
	GitHubHookConfiguration `json:",inline"`
}

func (*WebhookConfiguration) DeepCopy

func (*WebhookConfiguration) DeepCopyInto

func (in *WebhookConfiguration) DeepCopyInto(out *WebhookConfiguration)

type WebhookConfigurationStatus

type WebhookConfigurationStatus struct {
	Id         int64        `json:"id"`
	Repository string       `json:"repository,omitempty"`
	UpdateTime *metav1.Time `json:"updateTime,omitempty"`
}

func (*WebhookConfigurationStatus) DeepCopy

func (*WebhookConfigurationStatus) DeepCopyInto

Jump to

Keyboard shortcuts

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