Documentation ¶
Index ¶
- Constants
- Variables
- func DeploymentFromKRM(object runtime.Object) (*backendpkg.Deployment, error)
- func DeploymentInfoToKRM(deploymentInfo *backendpkg.DeploymentInfo) (*krm.Deployment, error)
- func DeploymentToKRM(deployment *backendpkg.Deployment) (*krm.Deployment, error)
- func FromResourceVersion(resourceVersion string) (time.Time, error)
- func IDFromListOptions(options *internalversion.ListOptions) (*string, error)
- func IDPatternsFromListOptions(options *internalversion.ListOptions) ([]string, error)
- func MetadataPatternsFromListOptions(options *internalversion.ListOptions) (map[string]string, error)
- func NewAPIGroupInfo(restOptions generic.RESTOptionsGetter, backend backend.Backend, ...) *serverpkg.APIGroupInfo
- func NewConfig(port int) (*server.CompletedConfig, error)
- func NewRecommendedConfig(port int) (*server.RecommendedConfig, error)
- func NewRecommendedOptions(port int) (*options.RecommendedOptions, error)
- func PackageFromKRM(krmPackage *krm.Package) tkoutil.Package
- func PackageToKRM(package_ tkoutil.Package) *krm.Package
- func PluginFromKRM(object runtime.Object) (*backendpkg.Plugin, error)
- func PluginToKRM(plugin *backendpkg.Plugin) (*krm.Plugin, error)
- func ResourceVersionsEqual(a time.Time, b time.Time) bool
- func SiteFromKRM(object runtime.Object) (*backendpkg.Site, error)
- func SiteInfoToKRM(siteInfo *backendpkg.SiteInfo) (*krm.Site, error)
- func SiteToKRM(site *backendpkg.Site) (*krm.Site, error)
- func TemplateFromKRM(object runtime.Object) (*backendpkg.Template, error)
- func TemplateInfoToKRM(templateInfo *backendpkg.TemplateInfo) (*krm.Template, error)
- func TemplateToKRM(template *backendpkg.Template) (*krm.Template, error)
- func ToDeploymentsKRM(object runtime.Object) ([]krm.Deployment, error)
- func ToPluginsKRM(object runtime.Object) ([]krm.Plugin, error)
- func ToResourceVersion(updated time.Time) string
- func ToSitesKRM(object runtime.Object) ([]krm.Site, error)
- func ToTemplatesKRM(object runtime.Object) ([]krm.Template, error)
- func ToUID(segments ...string) types.UID
- type Server
- type Store
- func NewDeploymentStore(backend backend.Backend, log commonlog.Logger) *Store
- func NewPluginStore(backend backend.Backend, log commonlog.Logger) *Store
- func NewSiteStore(backend backend.Backend, log commonlog.Logger) *Store
- func NewTemplateStore(backend backendpkg.Backend, log commonlog.Logger) *Store
- func (self *Store) AcceptsGroupVersion(gv schema.GroupVersion) bool
- func (self *Store) AllowCreateOnUpdate() bool
- func (self *Store) AllowUnconditionalUpdate() bool
- func (self *Store) Canonicalize(object runtime.Object)
- func (self *Store) Categories() []string
- func (self *Store) ConvertToTable(context contextpkg.Context, object runtime.Object, options runtime.Object) (*meta.Table, error)
- func (self *Store) Create(context contextpkg.Context, object runtime.Object, ...) (runtime.Object, error)
- func (self *Store) Delete(context contextpkg.Context, name string, ...) (runtime.Object, bool, error)
- func (self *Store) DeleteCollection(context contextpkg.Context, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, error)
- func (self *Store) DeleteReturnsDeletedObject() bool
- func (self *Store) Destroy()
- func (self *Store) GenerateName(base string) string
- func (self *Store) Get(context contextpkg.Context, name string, options *meta.GetOptions) (runtime.Object, error)
- func (self *Store) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set
- func (self *Store) GetSingularName() string
- func (self *Store) GroupVersionKind(containingGv schema.GroupVersion) schema.GroupVersionKind
- func (self *Store) Init()
- func (self *Store) Kind() string
- func (self *Store) List(context contextpkg.Context, options *internalversion.ListOptions) (runtime.Object, error)
- func (self *Store) NamespaceScoped() bool
- func (self *Store) New() runtime.Object
- func (self *Store) NewList() runtime.Object
- func (self *Store) NewSelectionPredicate(options *internalversion.ListOptions) storage.SelectionPredicate
- func (self *Store) ObjectKinds(object runtime.Object) ([]schema.GroupVersionKind, bool, error)
- func (self *Store) PrepareForCreate(context contextpkg.Context, object runtime.Object)
- func (self *Store) PrepareForUpdate(context contextpkg.Context, object runtime.Object, oldObject runtime.Object)
- func (self *Store) PreserveRequestObjectMetaSystemFieldsOnSubresourceCreate() bool
- func (self *Store) Recognizes(gvk schema.GroupVersionKind) bool
- func (self *Store) ShortNames() []string
- func (self *Store) Update(context contextpkg.Context, name string, objectInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- func (self *Store) Validate(context contextpkg.Context, object runtime.Object) field.ErrorList
- func (self *Store) ValidateUpdate(context contextpkg.Context, object runtime.Object, oldObject runtime.Object) field.ErrorList
- func (self *Store) WarningsOnCreate(context contextpkg.Context, object runtime.Object) []string
- func (self *Store) WarningsOnUpdate(context contextpkg.Context, object runtime.Object, oldObject runtime.Object) []string
Constants ¶
const ( ServerName = "tko-data-server" ComponentName = "tko" ComponentVersion = "0.1" OpenAPITitle = "TKO" OpenAPIVersion = "0.1" )
const ( Category = "tko" ParallelBufferSize = 1000 ParallelWorkers = 10 RetryAfterSeconds = 5 )
Variables ¶
var APIVersion = krm.SchemeGroupVersion.Identifier()
var Codecs = serializer.NewCodecFactory(Scheme)
var Scheme = runtime.NewScheme()
Functions ¶
func DeploymentFromKRM ¶
func DeploymentFromKRM(object runtime.Object) (*backendpkg.Deployment, error)
func DeploymentInfoToKRM ¶
func DeploymentInfoToKRM(deploymentInfo *backendpkg.DeploymentInfo) (*krm.Deployment, error)
func DeploymentToKRM ¶
func DeploymentToKRM(deployment *backendpkg.Deployment) (*krm.Deployment, error)
func IDFromListOptions ¶
func IDFromListOptions(options *internalversion.ListOptions) (*string, error)
func IDPatternsFromListOptions ¶
func IDPatternsFromListOptions(options *internalversion.ListOptions) ([]string, error)
func MetadataPatternsFromListOptions ¶
func MetadataPatternsFromListOptions(options *internalversion.ListOptions) (map[string]string, error)
func NewAPIGroupInfo ¶
func NewAPIGroupInfo(restOptions generic.RESTOptionsGetter, backend backend.Backend, log commonlog.Logger) *serverpkg.APIGroupInfo
func NewRecommendedConfig ¶
func NewRecommendedConfig(port int) (*server.RecommendedConfig, error)
func NewRecommendedOptions ¶
func NewRecommendedOptions(port int) (*options.RecommendedOptions, error)
func PluginFromKRM ¶
func PluginFromKRM(object runtime.Object) (*backendpkg.Plugin, error)
func PluginToKRM ¶
func PluginToKRM(plugin *backendpkg.Plugin) (*krm.Plugin, error)
func SiteFromKRM ¶
func SiteFromKRM(object runtime.Object) (*backendpkg.Site, error)
func SiteInfoToKRM ¶
func SiteInfoToKRM(siteInfo *backendpkg.SiteInfo) (*krm.Site, error)
func TemplateFromKRM ¶
func TemplateFromKRM(object runtime.Object) (*backendpkg.Template, error)
func TemplateInfoToKRM ¶
func TemplateInfoToKRM(templateInfo *backendpkg.TemplateInfo) (*krm.Template, error)
func TemplateToKRM ¶
func TemplateToKRM(template *backendpkg.Template) (*krm.Template, error)
func ToDeploymentsKRM ¶
func ToDeploymentsKRM(object runtime.Object) ([]krm.Deployment, error)
func ToResourceVersion ¶
Types ¶
type Server ¶
type Store ¶
type Store struct { Backend backendpkg.Backend Log commonlog.Logger TypeKind string TypeListKind string TypeSingular string TypePlural string TypeShortNames []string CanCreateOnUpdate bool NewObjectFunc func() runtime.Object NewListObjectFunc func() runtime.Object GetFieldsFunc func(object runtime.Object) (fields.Set, error) // These can return backend errors CreateFunc func(context contextpkg.Context, store *Store, object runtime.Object) (runtime.Object, error) UpdateFunc func(context contextpkg.Context, store *Store, updatedObject runtime.Object) (runtime.Object, error) // optional DeleteFunc func(context contextpkg.Context, store *Store, id string) error PurgeFunc func(context contextpkg.Context, store *Store) error GetFunc func(context contextpkg.Context, store *Store, id string) (runtime.Object, error) ListFunc func(context contextpkg.Context, store *Store, options *internalversion.ListOptions, offset uint, maxCount uint) (runtime.Object, error) TableFunc func(context contextpkg.Context, store *Store, object runtime.Object, withHeaders bool, withObject bool) (*meta.Table, error) // contains filtered or unexported fields }
func NewDeploymentStore ¶
func NewTemplateStore ¶
func NewTemplateStore(backend backendpkg.Backend, log commonlog.Logger) *Store
func (*Store) AcceptsGroupVersion ¶
func (self *Store) AcceptsGroupVersion(gv schema.GroupVersion) bool
(rest.GroupVersionAcceptor interface)
func (*Store) AllowCreateOnUpdate ¶
(rest.RESTUpdateStrategy interface) (rest.RESTCreateUpdateStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface) (rest.UpdateResetFieldsStrategy interface)
func (*Store) AllowUnconditionalUpdate ¶
(rest.RESTUpdateStrategy interface) (rest.RESTCreateUpdateStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface) (rest.UpdateResetFieldsStrategy interface)
func (*Store) Canonicalize ¶
(rest.RESTUpdateStrategy interface) (rest.RESTCreateStrategy interface) (rest.RESTCreateUpdateStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface) (rest.UpdateResetFieldsStrategy interface)
func (*Store) Categories ¶
(rest.SingularNameProvider interface)
func (*Store) ConvertToTable ¶
func (self *Store) ConvertToTable(context contextpkg.Context, object runtime.Object, options runtime.Object) (*meta.Table, error)
(rest.TableConvertor interface) (rest.Lister interface) (rest.StandardStorage interface)
func (*Store) Create ¶
func (self *Store) Create(context contextpkg.Context, object runtime.Object, createValidation rest.ValidateObjectFunc, options *meta.CreateOptions) (runtime.Object, error)
(rest.Creater interface) (rest.CreaterUpdater interface) (rest.StandardStorage interface)
func (*Store) Delete ¶
func (self *Store) Delete(context contextpkg.Context, name string, deleteValidation rest.ValidateObjectFunc, options *meta.DeleteOptions) (runtime.Object, bool, error)
(rest.GracefulDeleter interface) (rest.StandardStorage interface)
func (*Store) DeleteCollection ¶
func (self *Store) DeleteCollection(context contextpkg.Context, deleteValidation rest.ValidateObjectFunc, options *meta.DeleteOptions, listOptions *internalversion.ListOptions) (runtime.Object, error)
(rest.CollectionDeleter interface) (rest.StandardStorage interface)
func (*Store) DeleteReturnsDeletedObject ¶
(rest.MayReturnFullObjectDeleter interface)
func (*Store) Destroy ¶
func (self *Store) Destroy()
(rest.Storage interface) (rest.StandardStorage interface)
func (*Store) GenerateName ¶
([names.NameGenerator] interface) (rest.RESTCreateStrategy interface) (rest.RESTUpdateStrategy interface) (rest.RESTCreateUpdateStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface) (rest.UpdateResetFieldsStrategy interface)
func (*Store) Get ¶
func (self *Store) Get(context contextpkg.Context, name string, options *meta.GetOptions) (runtime.Object, error)
(rest.Getter interface) (rest.Patcher interface) (rest.StandardStorage interface)
func (*Store) GetResetFields ¶
func (self *Store) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set
(rest.ResetFieldsStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface) (rest.UpdateResetFieldsStrategy interface)
func (*Store) GetSingularName ¶
(rest.CategoriesProvider interface)
func (*Store) GroupVersionKind ¶
func (self *Store) GroupVersionKind(containingGv schema.GroupVersion) schema.GroupVersionKind
(rest.GroupVersionKindProvider interface)
func (*Store) List ¶
func (self *Store) List(context contextpkg.Context, options *internalversion.ListOptions) (runtime.Object, error)
(rest.Lister interface) (rest.StandardStorage interface)
func (*Store) NamespaceScoped ¶
(rest.Scoper interface) (rest.RESTUpdateStrategy interface) (rest.RESTCreateStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface) (rest.UpdateResetFieldsStrategy interface)
func (*Store) New ¶
(rest.Storage interface) (rest.Creater interface) (rest.NamedCreater interface)
func (*Store) NewList ¶
(rest.Lister interface) (rest.StandardStorage interface)
func (*Store) NewSelectionPredicate ¶
func (self *Store) NewSelectionPredicate(options *internalversion.ListOptions) storage.SelectionPredicate
Unused
func (*Store) ObjectKinds ¶
(runtime.ObjectTyper interface) (rest.RESTCreateStrategy interface) (rest.RESTUpdateStrategy interface) (rest.RESTCreateUpdateStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface) (rest.UpdateResetFieldsStrategy interface)
func (*Store) PrepareForCreate ¶
func (self *Store) PrepareForCreate(context contextpkg.Context, object runtime.Object)
(rest.RESTCreateStrategy interface) (rest.RESTCreateUpdateStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface)
func (*Store) PrepareForUpdate ¶
func (self *Store) PrepareForUpdate(context contextpkg.Context, object runtime.Object, oldObject runtime.Object)
(rest.RESTUpdateStrategy interface) (rest.RESTCreateUpdateStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface) (rest.UpdateResetFieldsStrategy interface)
func (*Store) PreserveRequestObjectMetaSystemFieldsOnSubresourceCreate ¶
(rest.SubresourceObjectMetaPreserver interface)
func (*Store) Recognizes ¶
func (self *Store) Recognizes(gvk schema.GroupVersionKind) bool
(runtime.ObjectTyper interface) (rest.RESTCreateStrategy interface) (rest.RESTUpdateStrategy interface) (rest.RESTCreateUpdateStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface) (rest.UpdateResetFieldsStrategy interface)
func (*Store) ShortNames ¶
(rest.ShortNamesProvider interface)
func (*Store) Update ¶
func (self *Store) Update(context contextpkg.Context, name string, objectInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *meta.UpdateOptions) (runtime.Object, bool, error)
(rest.Updater interface) (rest.CreaterUpdater interface) (rest.Patcher interface) (rest.StandardStorage interface)
func (*Store) Validate ¶
(rest.RESTCreateStrategy interface) (rest.RESTCreateUpdateStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface)
func (*Store) ValidateUpdate ¶
func (self *Store) ValidateUpdate(context contextpkg.Context, object runtime.Object, oldObject runtime.Object) field.ErrorList
(rest.RESTUpdateStrategy interface) (rest.RESTCreateUpdateStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface) (rest.UpdateResetFieldsStrategy interface)
func (*Store) WarningsOnCreate ¶
(rest.RESTCreateStrategy interface) (rest.RESTCreateUpdateStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface)
func (*Store) WarningsOnUpdate ¶
func (self *Store) WarningsOnUpdate(context contextpkg.Context, object runtime.Object, oldObject runtime.Object) []string
(rest.RESTUpdateStrategy interface) (rest.RESTCreateUpdateStrategy interface) (rest.CreateUpdateResetFieldsStrategy interface) (rest.UpdateResetFieldsStrategy interface)