services

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceVersionUnSame = "ResourceVersionUnSame"
	ParentNmae            = "parentName"
	StatefulPod           = "StatefulPod"
	Index                 = "index"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	client.Client
	Log logr.Logger
}

func NewResource

func NewResource(client client.Client) *Resource

func (*Resource) IsNodeReady

func (r *Resource) IsNodeReady(ctx context.Context, nodeName types.NamespacedName) bool

func (*Resource) IsPvCanUse

func (r *Resource) IsPvCanUse(ctx context.Context, pvNameSpaceName *types.NamespacedName) (*string, bool)

func (*Resource) SetPVCName

func (r *Resource) SetPVCName(statefulPod *iapetosapiv1.StatefulPod, index int) string

func (*Resource) SetServiceName

func (r *Resource) SetServiceName(statefulPod *iapetosapiv1.StatefulPod) string

type ServiceInf

type ServiceInf interface {
	Create(ctx context.Context, obj interface{}) (interface{}, error)
	Update(ctx context.Context, obj interface{}) (interface{}, error)
	Delete(ctx context.Context, obj interface{}) error
	IsExists(ctx context.Context, nameSpaceName types.NamespacedName) (interface{}, bool)
	CreateTemplate(ctx context.Context, statefulPod *iapetosapiv1.StatefulPod, name string, index int) interface{}
	GetName(statefulPod *iapetosapiv1.StatefulPod, index int) *string
	IsResourceVersionSame(ctx context.Context, obj interface{}) bool
	DeleteMandatory(ctx context.Context, obj interface{}, statefulPod *iapetosapiv1.StatefulPod) error
	Get(ctx context.Context, nameSpaceName types.NamespacedName) (interface{}, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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