v1alpha1

package
v0.0.0-...-f60092b Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the tor v1alpha1 API group +kubebuilder:object:generate=true +groupName=tor.k8s.torproject.org

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "tor.k8s.torproject.org", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type OnionService

type OnionService struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   OnionServiceSpec   `json:"spec,omitempty"`
	Status OnionServiceStatus `json:"status,omitempty"`
}

OnionService is the Schema for the onionservices API.

func (*OnionService) DeepCopy

func (in *OnionService) DeepCopy() *OnionService

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OnionService.

func (*OnionService) DeepCopyInto

func (in *OnionService) DeepCopyInto(out *OnionService)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OnionService) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*OnionService) DeploymentName

func (s *OnionService) DeploymentName() string

func (*OnionService) RoleName

func (s *OnionService) RoleName() string

func (*OnionService) ServiceAccountName

func (s *OnionService) ServiceAccountName() string

func (*OnionService) ServiceName

func (s *OnionService) ServiceName() string

type OnionServiceList

type OnionServiceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []OnionService `json:"items"`
}

OnionServiceList contains a list of OnionService.

func (*OnionServiceList) DeepCopy

func (in *OnionServiceList) DeepCopy() *OnionServiceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OnionServiceList.

func (*OnionServiceList) DeepCopyInto

func (in *OnionServiceList) DeepCopyInto(out *OnionServiceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OnionServiceList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type OnionServiceSpec

type OnionServiceSpec struct {
	// The list of ports that are exposed by this service.
	// +patchMergeKey=publicPort
	// +patchStrategy=merge
	Ports []ServicePort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"publicPort"`

	Selector map[string]string `json:"selector,omitempty"`

	// +optional
	PrivateKeySecret SecretReference `json:"privateKeySecret,omitempty"`

	// +kubebuilder:validation:Enum=0;2;3
	Version int32 `json:"version"`

	// +optional
	ExtraConfig string `json:"extraConfig,omitempty"`
}

OnionServiceSpec defines the desired state of OnionService.

func (*OnionServiceSpec) DeepCopy

func (in *OnionServiceSpec) DeepCopy() *OnionServiceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OnionServiceSpec.

func (*OnionServiceSpec) DeepCopyInto

func (in *OnionServiceSpec) DeepCopyInto(out *OnionServiceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OnionServiceSpec) GetVersion

func (s *OnionServiceSpec) GetVersion() int

type OnionServiceStatus

type OnionServiceStatus struct {
	Hostname        string `json:"hostname"`
	TargetClusterIP string `json:"targetClusterIP"`
}

OnionServiceStatus defines the observed state of OnionService.

func (*OnionServiceStatus) DeepCopy

func (in *OnionServiceStatus) DeepCopy() *OnionServiceStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OnionServiceStatus.

func (*OnionServiceStatus) DeepCopyInto

func (in *OnionServiceStatus) DeepCopyInto(out *OnionServiceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretReference

type SecretReference struct {
	// Name is unique within a namespace to reference a secret resource.
	Name string `json:"name,omitempty"`

	Key string `json:"key,omitempty"`
}

SecretReference represents a Secret Reference.

func (*SecretReference) DeepCopy

func (in *SecretReference) DeepCopy() *SecretReference

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretReference.

func (*SecretReference) DeepCopyInto

func (in *SecretReference) DeepCopyInto(out *SecretReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServicePort

type ServicePort struct {
	// Optional if only one ServicePort is defined on this service.
	// +optional
	Name string `json:"name,omitempty"`

	// The port that will be exposed by this service.
	PublicPort int32 `json:"publicPort"`
	// Number or name of the port to access on the pods targeted by the service.
	// Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
	// If this is a string, it will be looked up as a named port in the
	// target Pod's container ports. If this is not specified, the value
	// of the 'port' field is used (an identity map).
	// This field is ignored for services with clusterIP=None, and should be
	// omitted or set equal to the 'port' field.
	// More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
	// +optional
	TargetPort int32 `json:"targetPort,omitempty"`
}

func (*ServicePort) DeepCopy

func (in *ServicePort) DeepCopy() *ServicePort

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePort.

func (*ServicePort) DeepCopyInto

func (in *ServicePort) DeepCopyInto(out *ServicePort)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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