# Functions
ErrCannotExposeObjectErr is the error if the given object cannot be exposed.
ErrConstructingRestHelper is the error when a rest helper cannot be generated for the generated service.
ErrCreatingService is the error when there is an error deploying the service.
ErrExposeResource is the error when there is an error exposing the kubernetes resource.
ErrFailedToExtractPodSelectorErr is the error for failed to extract pod selector.
ErrFailedToExtractPorts is the error for failed to extract ports.
ErrFailedToExtractProtocolsErr is the error for extracting ports.
ErrGenerateService is the error when a service cannot be generated for the given resource.
ErrGettingResource is the error when there is an error getting the kubernetes resource.
ErrLabelBasedMap is the error when the given resource's labels can't be parsed to a map.
ErrMatchExpressionsConvertionErr is the error for failed match expression conversion.
ErrPortParsing is the error when the given resource's ports can't be parsed to a slice.
ErrProtocolBasedMap is the error when the given resource's protocols can't be parsed to a map.
ErrResourceCannotBeExposed is the error if the given resource cannot be exposed.
ErrSelectorBasedMap is the error when the given resource's selectors can't be parsed to a map.
ErrTraverser is the error is collection of error generated while traversing the resources.
ErrUnknownSessionAffinityErr is the error for unknown session affinity.
Expose exposes the given kubernetes resource.
Remove deletes the given service.
# Constants
ClientIP is the "ClientIP" type SessionAffinity.
Supported service type.
Supported service type.
Supported service type.
None is the "None" type SessionAffinity.
# Variables
ErrCannotExposeObjectErrCode is generated when there is an error.
ErrConstructingRestHelperCode is generated when a rest helper cannot be generated for the generated service.
ErrCreatingServiceCode is generated when there is an error deploying the service.
ErrExposeResourceCode is generated while exposing the kubernetes resource.
ErrFailedToExtractPodSelectorErrCode is generated when there is an error.
ErrFailedToExtractPortsCode is generated when there is an error.
ErrFailedToExtractProtocolsErrCode is generated when there is an error.
ErrGenerateServiceCode is generated when a service cannot be generated for the given resource.
ErrGettingResourceCode is generated when there is an error getting the kubernetes resource.
ErrInvalidDeploymentNoSelectors is the error for deployment (v1) with no selectors.
ErrInvalidDeploymentNoSelectorsCode is generated when there is an error.
ErrInvalidDeploymentNoSelectorsLabels is the error for deployment (v1beta1) with no selectors and labels.
ErrInvalidDeploymentNoSelectorsLabelsCode is generated when there is an error.
ErrInvalidReplicaNoSelectorsLabels is the error for replicaset (v1beta1) with no selectors and labels.
ErrInvalidReplicaNoSelectorsLabelsCode is generated when there is an error.
ErrInvalidReplicaSetNoSelectors is the error for replicaset (v1) with no selectors.
ErrInvalidReplicaSetNoSelectorsCode is generated when there is an error.
ErrLableBasedMapCode is generated when the given resource's protocol can't be parsed to a map.
ErrMatchExpressionsConvertionErrCode is generated when there is an error.
ErrNoPortsFoundForHeadlessResource is the error when no ports are found for non headless resource.
ErrNoPortsFoundForHeadlessResourceCode is generated when there is an error.
ErrPodHasNoLabels is the error for pods with no labels.
ErrPodHasNoLabelsCode is generated when there is an error.
ErrPortParsingCode is generated when the given resource's ports can't be parsed to a slice.
ErrProtocolBasedMapCode is generated when the given resource's protocol can't be parsed to a map.
ErrResourceCannotBeExposedCode is generated when the given resource cannot be exposed.
ErrSelectorBasedMapCode is generated when the given resource's selectors can't be parsed to a map.
ErrServiceHasNoSelectors is the error for service with no selectors.
ErrServiceHasNoSelectorsCode is generated when there is an error.
ErrTraverserCode is a collection of errors generated during traversing the resources.
ErrUnknownSessionAffinityErrCode is generated when there is an error.
# Interfaces
Object is the interface extending kubernetes' runtime object interface.
# Type aliases
ServiceType us the type for Kubernetes resources' Type.
SessionAffinity is the type for Kubernetes resources' SessionAffinity.
VisitCB is the type for callback function that is invoked when the traverser reaches one of the given kubernetes resource
The first argument for the VisitCB is the kubernetes resource itself while the other is the error that may have occurred in the traverser in case this error is not nil, then this callbac function may return without executing the code.