service

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DisposableRequestCRContext

type DisposableRequestCRContext struct {
	// contains filtered or unexported fields
}

DisposableRequestCRContext wraps a DisposableRequest CR and provides convenient access to its spec, status, and object. This reduces parameter counts by bundling spec, rollback policy, status, and object accessors.

func NewDisposableRequestCRContext

func NewDisposableRequestCRContext(cr interfaces.DisposableRequestResource) *DisposableRequestCRContext

NewDisposableRequestCRContext creates a new context for a DisposableRequest custom resource.

func (*DisposableRequestCRContext) GetCR

GetCR returns the underlying custom resource as a client.Object.

func (*DisposableRequestCRContext) GetDisposableRequestResource

func (c *DisposableRequestCRContext) GetDisposableRequestResource() interfaces.DisposableRequestResource

GetDisposableRequestResource returns the underlying custom resource with full interface access.

func (*DisposableRequestCRContext) RollbackPolicy

RollbackPolicy returns the rollback policy configuration. The spec also implements RollbackAware for DisposableRequest.

func (*DisposableRequestCRContext) Spec

Spec returns the request specification.

func (*DisposableRequestCRContext) Status

Status returns the status reader.

func (*DisposableRequestCRContext) StatusWriter

StatusWriter provides access to status modification methods.

type RequestCRContext

type RequestCRContext struct {
	// contains filtered or unexported fields
}

RequestCRContext wraps a Request CR and provides convenient access to its interfaces. This reduces parameter counts by bundling spec, status, and cached response accessors.

func NewRequestCRContext

func NewRequestCRContext(cr interfaces.RequestResource) *RequestCRContext

NewRequestCRContext creates a new context for a Request custom resource.

func (*RequestCRContext) CachedResponse

func (c *RequestCRContext) CachedResponse() interfaces.CachedResponse

CachedResponse provides access to cached response data.

func (*RequestCRContext) GetCR

func (c *RequestCRContext) GetCR() client.Object

GetCR returns the underlying custom resource as a client.Object.

func (*RequestCRContext) GetRequestResource

func (c *RequestCRContext) GetRequestResource() interfaces.RequestResource

GetRequestResource returns the underlying custom resource with full interface access.

func (*RequestCRContext) Spec

Spec returns the request specification (ForProvider parameters).

func (*RequestCRContext) Status

Status provides access to status reading methods.

func (*RequestCRContext) StatusWriter

StatusWriter provides access to status modification methods.

type ServiceContext

type ServiceContext struct {
	Ctx           context.Context
	LocalKube     client.Client
	Logger        logging.Logger
	HTTP          httpClient.Client
	TLSConfigData *httpClient.TLSConfigData
}

ServiceContext wraps common dependencies passed to service layer functions. This reduces parameter count and makes function signatures more maintainable.

func NewServiceContext

func NewServiceContext(ctx context.Context, localKube client.Client, logger logging.Logger, httpClient httpClient.Client, tlsConfigData *httpClient.TLSConfigData) *ServiceContext

NewServiceContext creates a new ServiceContext with the provided dependencies.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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