Documentation ¶
Index ¶
- type ConfigConnectorValidator
- type CustomResourceSelector
- type PodSelector
- type PodValidator
- type Recommender
- type Resource
- func (r Resource) ActionableError() *proto.ActionableErr
- func (r Resource) Kind() string
- func (r Resource) Logs() []string
- func (r Resource) Name() string
- func (r Resource) Namespace() string
- func (r Resource) Status() Status
- func (r Resource) StatusUpdated(another Resource) bool
- func (r Resource) String() string
- type Status
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigConnectorValidator ¶ added in v1.34.1
type ConfigConnectorValidator struct {
// contains filtered or unexported fields
}
ConfigConnectorValidator implements the Validator interface for Config Connector resources
func NewConfigConnectorValidator ¶ added in v1.34.1
func NewConfigConnectorValidator(k kubernetes.Interface, d dynamic.Interface, gvk schema.GroupVersionKind) *ConfigConnectorValidator
NewConfigConnectorValidator initializes a ConfigConnectorValidator
func (*ConfigConnectorValidator) Validate ¶ added in v1.34.1
func (ccv *ConfigConnectorValidator) Validate(ctx context.Context, ns string, opts metav1.ListOptions) ([]Resource, error)
Validate implements the Validate method for Validator interface
type CustomResourceSelector ¶ added in v1.34.1
type CustomResourceSelector struct {
// contains filtered or unexported fields
}
func NewCustomResourceSelector ¶ added in v1.34.1
func NewCustomResourceSelector(client kubernetes.Interface, dynClient dynamic.Interface, gvk schema.GroupVersionKind) *CustomResourceSelector
func (*CustomResourceSelector) Select ¶ added in v1.34.1
func (c *CustomResourceSelector) Select(ctx context.Context, namespace string, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
Select returns the updated list of custom resources for the given GroupVersionKind deployed by skaffold
type PodSelector ¶ added in v1.33.0
type PodSelector interface {
Select(ctx context.Context, namespace string, opts metav1.ListOptions) ([]v1.Pod, error)
}
PodSelector defines how to filter to targeted pods for running validation
func NewDeploymentPodsSelector ¶ added in v1.33.0
func NewDeploymentPodsSelector(k kubernetes.Interface, d appsv1.Deployment) PodSelector
func NewStandalonePodsSelector ¶ added in v1.33.0
func NewStandalonePodsSelector(k kubernetes.Interface) PodSelector
func NewStatefulSetPodsSelector ¶ added in v1.34.1
func NewStatefulSetPodsSelector(k kubernetes.Interface, d appsv1.StatefulSet) PodSelector
type PodValidator ¶ added in v1.6.0
type PodValidator struct {
// contains filtered or unexported fields
}
PodValidator implements the Validator interface for Pods
func NewPodValidator ¶ added in v1.6.0
func NewPodValidator(k kubernetes.Interface, s PodSelector) *PodValidator
NewPodValidator initializes a PodValidator
func (*PodValidator) Validate ¶ added in v1.6.0
func (p *PodValidator) Validate(ctx context.Context, ns string, opts metav1.ListOptions) ([]Resource, error)
Validate implements the Validate method for Validator interface
type Recommender ¶ added in v1.7.1
type Recommender interface {
// Makes one or more recommendations for the ErrorCode in err and updates the err with suggestions
Make(errCode proto.StatusCode) *proto.Suggestion
}
Recommender makes recommendations based on err in the actionable error
type Resource ¶ added in v1.6.0
type Resource struct {
// contains filtered or unexported fields
}
func NewResource ¶ added in v1.6.0
func NewResource(namespace, kind, name string, status Status, ae *proto.ActionableErr, logs []string) Resource
NewResource creates new Resource of kind
func NewResourceFromObject ¶ added in v1.6.0
func NewResourceFromObject(object objectWithMetadata, status Status, ae *proto.ActionableErr, logs []string) Resource
NewResourceFromObject creates new Resource with fields populated from object metadata.
func (Resource) ActionableError ¶ added in v1.7.1
func (r Resource) ActionableError() *proto.ActionableErr