Documentation ¶
Index ¶
- Constants
- Variables
- func HasOwnerReference(object metav1.Object, reference metav1.OwnerReference) bool
- func HasSameRevision(obj1 metav1.Object, obj2 metav1.Object) bool
- func NewControllerRef(owner object) (*metav1.OwnerReference, error)
- type Client
- func (c *Client) GetDeployment(ctx context.Context, name string) (*v1.Deployment, error)
- func (c *Client) GetDeploymentPods(ctx context.Context, d *v1.Deployment) ([]v1Core.Pod, error)
- func (c *Client) GetObjectEvents(ctx context.Context, object metav1.Object) ([]v1Core.Event, error)
- func (c *Client) StreamPodLogs(ctx context.Context, name string) error
Constants ¶
View Source
const (
AnnotationDeploymentRevision = "deployment.kubernetes.io/revision"
)
Variables ¶
View Source
var ErrTooManyKinds = errors.New("too many kinds")
Functions ¶
func HasOwnerReference ¶
func HasOwnerReference(object metav1.Object, reference metav1.OwnerReference) bool
func NewControllerRef ¶
func NewControllerRef(owner object) (*metav1.OwnerReference, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetDeployment ¶
func (*Client) GetDeploymentPods ¶
func (*Client) GetObjectEvents ¶
Click to show internal directories.
Click to hide internal directories.