Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the config v1alpha1 API group
Index ¶
Constants ¶
const GroupName = "config.apoxy.dev"
GroupName specifies the group name used to register the objects.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // Deprecated: use Install instead AddToScheme = localSchemeBuilder.AddToScheme Install = localSchemeBuilder.AddToScheme )
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha1"}
GroupVersion specifies the group and the version used to register the objects.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Config ¶
type Config struct {
metav1.TypeMeta `json:",inline"`
// Whether to enable verbose logging.
Verbose bool `json:"verbose,omitempty"`
// The URL for the dashboard UI.
DashboardURL string `json:"dashboardURL,omitempty"`
// CurrentProject is the default project ID to use unless overridden.
CurrentProject uuid.UUID `json:"currentProject,omitempty"`
// Projects is a list of projects that this instance is managing.
Projects []Project `json:"projects,omitempty"`
// Resources is a list of resources that this instance should manage/reconcile.
Resources []ObjectReferenceWithProject `json:"resources,omitempty"`
}
Config is the Schema for the Apoxy Backplane configuration.
func (*Config) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Config) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ObjectReferenceWithProject ¶
type ObjectReferenceWithProject struct {
corev1.ObjectReference `json:",inline"`
// Project is the project ID to use for this object.
Project string `json:"project"`
}
ObjectReferenceWithContext is a reference to an object with an API server context.
func (*ObjectReferenceWithProject) DeepCopy ¶
func (in *ObjectReferenceWithProject) DeepCopy() *ObjectReferenceWithProject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReferenceWithProject.
func (*ObjectReferenceWithProject) DeepCopyInto ¶
func (in *ObjectReferenceWithProject) DeepCopyInto(out *ObjectReferenceWithProject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Project ¶
type Project struct {
// ID is the project ID.
ID uuid.UUID `json:"id"`
// The base URL for API requests.
APIBaseURL string `json:"apiBaseURL,omitempty"`
// The host header to set for API requests.
APIBaseHost string `json:"apiBaseHost,omitempty"`
// APIKey is the API key for the project.
APIKey string `json:"apiKey"`
}
Project is a configuration for a project.
func (*Project) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Project.
func (*Project) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.