v1alpha1

package
v0.0.0-...-534dfd5 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the iam v1alpha1 API group +kubebuilder:object:generate=true +groupName=kconnect.fidelity.github.com

Index

Constants

View Source
const (
	GroupName = "kconnect.fidelity.github.com"
)

Variables

View Source
var (
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
	SchemeBuilder      = runtime.NewSchemeBuilder(addKnownTypes)

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var ErrNoHistoryExtension = errors.New("no kconnext history extension found")

Functions

func NewSchemeAndCodecs

func NewSchemeAndCodecs() (*runtime.Scheme, *serializer.CodecFactory, error)

Types

type AppDefaults

type AppDefaults struct {
	Name string
	Args map[string]string `json:"args,omitempty"`
}

AppDefaults represents the default values for the kconnect app

func (*AppDefaults) DeepCopy

func (in *AppDefaults) DeepCopy() *AppDefaults

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

func (*AppDefaults) DeepCopyInto

func (in *AppDefaults) DeepCopyInto(out *AppDefaults)

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

type Configuration

type Configuration struct {
	metav1.TypeMeta `json:",inline"`

	Spec ConfigurationSpec `json:"spec,omitempty"`
}

Configuration represents the kconnect configuration

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration will create a new configuration

func (*Configuration) DeepCopy

func (in *Configuration) DeepCopy() *Configuration

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

func (*Configuration) DeepCopyInto

func (in *Configuration) DeepCopyInto(out *Configuration)

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

func (*Configuration) DeepCopyObject

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

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

func (*Configuration) ToTable

func (c *Configuration) ToTable() *metav1.Table

type ConfigurationSpec

type ConfigurationSpec struct {
	// Global holds global configuration in the form of key:value pairs
	Global map[string]string `json:"global,omitempty"`
	// Providers holds provider specific configuration valies in the form of
	// key:value pairs per provider name. Values specified here will
	// overwrite an global config of the same name.
	Providers map[string]map[string]string `json:"providers,omitempty"`
	// Lists contains predefined name lists of name/value pairs that can be
	// used to offer a selection to a user for a configuration item
	Lists map[string][]ListItem `json:"lists,omitempty"`
	// ImportedFrom holds where this configuration was originally imported from
	ImportedFrom *string `json:"importedFrom,omitempty"`
	// VersionCheck holds details of the last version cehck
	VersionCheck *VersionCheck `json:"versionCheck,omitempty"`
}

ConfigurationSpec represents the configuration of kconnect

func (*ConfigurationSpec) DeepCopy

func (in *ConfigurationSpec) DeepCopy() *ConfigurationSpec

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

func (*ConfigurationSpec) DeepCopyInto

func (in *ConfigurationSpec) DeepCopyInto(out *ConfigurationSpec)

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

type HistoryEntry

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

	Spec   HistoryEntrySpec   `json:"spec,omitempty"`
	Status HistoryEntryStatus `json:"status,omitempty"`
}

HistoryEntry represents a history entry

func NewHistoryEntry

func NewHistoryEntry() *HistoryEntry

func (*HistoryEntry) DeepCopy

func (in *HistoryEntry) DeepCopy() *HistoryEntry

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

func (*HistoryEntry) DeepCopyInto

func (in *HistoryEntry) DeepCopyInto(out *HistoryEntry)

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

func (*HistoryEntry) DeepCopyObject

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

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

func (*HistoryEntry) Equals

func (h *HistoryEntry) Equals(other *HistoryEntry) bool

type HistoryEntryList

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

HistoryEntryList is a list of history entries

func NewHistoryEntryList

func NewHistoryEntryList() *HistoryEntryList

func (*HistoryEntryList) DeepCopy

func (in *HistoryEntryList) DeepCopy() *HistoryEntryList

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

func (*HistoryEntryList) DeepCopyInto

func (in *HistoryEntryList) DeepCopyInto(out *HistoryEntryList)

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

func (*HistoryEntryList) DeepCopyObject

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

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

func (*HistoryEntryList) ToTable

func (l *HistoryEntryList) ToTable(currentContextID string) *metav1.Table

type HistoryEntrySpec

type HistoryEntrySpec struct {
	// Provider is the name of the discovery provider
	Provider string `json:"provider"`
	// Identity is the name of the identity provider
	Identity string `json:"identity"`
	// ProviderID is the unique identifier for cluster with the provider
	ProviderID string `json:"providerID"`
	// Flags is the non sensitive flags and values
	Flags map[string]string `json:"flags,omitempty"`
	// ConfigFile is the path to the config file that was updated
	ConfigFile string `json:"configFile"`
	// Alias is the given alternative user friendly name for the connection
	Alias *string `json:"alias,omitempty"`
}

HistoryEntrySpec represents a history item

func (*HistoryEntrySpec) DeepCopy

func (in *HistoryEntrySpec) DeepCopy() *HistoryEntrySpec

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

func (*HistoryEntrySpec) DeepCopyInto

func (in *HistoryEntrySpec) DeepCopyInto(out *HistoryEntrySpec)

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

type HistoryEntryStatus

type HistoryEntryStatus struct {
	// LastModified is the date/time that the entry was last modified
	LastModified metav1.Time `json:"lastModified"`
	// LastUsed is the date/time that the entry was last updated
	LastUsed metav1.Time `json:"lastUsed"`
}

func (*HistoryEntryStatus) DeepCopy

func (in *HistoryEntryStatus) DeepCopy() *HistoryEntryStatus

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

func (*HistoryEntryStatus) DeepCopyInto

func (in *HistoryEntryStatus) DeepCopyInto(out *HistoryEntryStatus)

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

type HistoryReference

type HistoryReference struct {
	metav1.TypeMeta `json:",inline"`

	EntryID string
}

HistoryReference is a kubeconfig extension to hold a reference to a history item

func GetHistoryReferenceFromContext

func GetHistoryReferenceFromContext(context *api.Context) (*HistoryReference, error)

func NewHistoryReference

func NewHistoryReference(entryID string) *HistoryReference

func (*HistoryReference) DeepCopy

func (in *HistoryReference) DeepCopy() *HistoryReference

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

func (*HistoryReference) DeepCopyInto

func (in *HistoryReference) DeepCopyInto(out *HistoryReference)

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

func (*HistoryReference) DeepCopyObject

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

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

type ListItem

type ListItem struct {
	// Name is the name to display to the user for the list item
	Name string `json:"name"`
	// Value is the value to use if the list item is selected
	Value string `json:"value"`
}

ListItem represents an item in a list

func (*ListItem) DeepCopy

func (in *ListItem) DeepCopy() *ListItem

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

func (*ListItem) DeepCopyInto

func (in *ListItem) DeepCopyInto(out *ListItem)

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

type VersionCheck

type VersionCheck struct {
	// LastChecked holds the date/time the last check was made to see
	// if there was a newer version available
	LastChecked metav1.Time `json:"lastVersionCheck"`
	// LatestReleaseVersion holds the latest release version of kconnect thats been retrieved from GitHub
	LatestReleaseVersion *string `json:"latestReleaseVersion,omitempty"`
	// LatestReleaseURL holds the URL for latest release version of kconnect thats been retrieved from GitHub
	LatestReleaseURL *string `json:"latestReleaseURL,omitempty"`
}

VersionCheck represents version information from a check

func (*VersionCheck) DeepCopy

func (in *VersionCheck) DeepCopy() *VersionCheck

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

func (*VersionCheck) DeepCopyInto

func (in *VersionCheck) DeepCopyInto(out *VersionCheck)

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