k8sNew

package
v0.0.0-...-6f0f11f Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLimitRangesService

func NewLimitRangesService(serviceFactory *resource.GenericServiceFactory) (*resource.GenericService, error)

func NewResourceQuotasService

func NewResourceQuotasService(serviceFactory *resource.GenericServiceFactory) (*resource.GenericService, error)

Types

type LimitRangeList

type LimitRangeList []*v1.LimitRange

func (*LimitRangeList) Append

func (l *LimitRangeList) Append() interface{}

type Resolver

type Resolver struct {
	*resource.Module
}

func New

func (*Resolver) CreateLimitRange

func (r *Resolver) CreateLimitRange(ctx context.Context, namespace string, name string, input gqlschema.LimitRangeInput) (*v1.LimitRange, error)

func (*Resolver) CreateResourceQuota

func (r *Resolver) CreateResourceQuota(ctx context.Context, namespace string, name string, input gqlschema.ResourceQuotaInput) (*v1.ResourceQuota, error)

func (*Resolver) GetHardField

func (r *Resolver) GetHardField(item *v1.ResourceQuotaSpec) (*gqlschema.ResourceQuotaHard, error)

func (*Resolver) GetLimitRangeResources

func (r *Resolver) GetLimitRangeResources(item resourceLimitsItem) (*gqlschema.ResourceLimits, error)

func (*Resolver) LimitRangeJSONfield

func (r *Resolver) LimitRangeJSONfield(ctx context.Context, obj *v1.LimitRange) (gqlschema.JSON, error)

func (*Resolver) LimitRangesQuery

func (r *Resolver) LimitRangesQuery(ctx context.Context, namespace string) ([]*v1.LimitRange, error)

func (*Resolver) LimitRangesService

func (r *Resolver) LimitRangesService() *resource.GenericService

func (*Resolver) ResourceQuotaJSONfield

func (r *Resolver) ResourceQuotaJSONfield(ctx context.Context, obj *v1.ResourceQuota) (gqlschema.JSON, error)

func (*Resolver) ResourceQuotasQuery

func (r *Resolver) ResourceQuotasQuery(ctx context.Context, namespace string) ([]*v1.ResourceQuota, error)

func (*Resolver) ResourceQuotasService

func (r *Resolver) ResourceQuotasService() *resource.GenericService

func (*Resolver) UpdateLimitRange

func (r *Resolver) UpdateLimitRange(ctx context.Context, namespace string, name string, newJSON gqlschema.JSON) (*v1.LimitRange, error)

func (*Resolver) UpdateResourceQuota

func (r *Resolver) UpdateResourceQuota(ctx context.Context, namespace string, name string, newJSON gqlschema.JSON) (*v1.ResourceQuota, error)

type ResourceQuotaList

type ResourceQuotaList []*v1.ResourceQuota

func (*ResourceQuotaList) Append

func (l *ResourceQuotaList) Append() interface{}

type Service

type Service struct {
	*resource.Service
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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