service

package
v0.0.0-...-2af97ec Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPodService

func NewPodService(client client.Client) services.ServiceInf

Types

type Service

type Service struct {
	*services.Resource
}

func (*Service) Create

func (svc *Service) Create(ctx context.Context, obj interface{}) (interface{}, error)

func (*Service) CreateTemplate

func (svc *Service) CreateTemplate(ctx context.Context, statefulPod *iapetosapiv1.StatefulPod, name string, index int) interface{}

func (*Service) Delete

func (svc *Service) Delete(ctx context.Context, obj interface{}) error

func (*Service) DeleteMandatory

func (svc *Service) DeleteMandatory(ctx context.Context, obj interface{}, statefulPod *iapetosapiv1.StatefulPod) error

func (*Service) Get

func (svc *Service) Get(ctx context.Context, nameSpaceName types.NamespacedName) (interface{}, error)

func (*Service) GetName

func (svc *Service) GetName(statefulPod *iapetosapiv1.StatefulPod, index int) *string

func (*Service) IsExists

func (svc *Service) IsExists(ctx context.Context, nameSpaceName types.NamespacedName) (interface{}, bool)

func (*Service) IsResourceVersionSame

func (svc *Service) IsResourceVersionSame(ctx context.Context, obj interface{}) bool

func (*Service) Update

func (svc *Service) Update(ctx context.Context, obj interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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