Documentation ¶
Overview ¶
Package janitor implements a janitor for vSphere.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Janitor ¶
type Janitor struct {
// contains filtered or unexported fields
}
Janitor implements a janitor for vSphere.
func NewJanitor ¶
func NewJanitor(vSphereClients *VSphereClients, dryRun bool) *Janitor
NewJanitor creates a new Janitor.
type NewVSphereClientsInput ¶
type NewVSphereClientsInput struct { Password string Server string Thumbprint string UserAgent string Username string }
NewVSphereClientsInput defines inputs for NewVSphereClients.
type VSphereClients ¶
type VSphereClients struct { Vim *vim25.Client Govmomi *govmomi.Client Rest *rest.Client FieldsManager *object.CustomFieldsManager Finder *find.Finder ViewManager *view.Manager }
VSphereClients is a collection of different clients for vSphere.
func NewVSphereClients ¶
func NewVSphereClients(ctx context.Context, input NewVSphereClientsInput) (*VSphereClients, error)
NewVSphereClients creates a VSphereClients object from the given input.
func (*VSphereClients) Logout ¶
func (v *VSphereClients) Logout(ctx context.Context)
Logout logs out all clients. It logs errors if the context contains a logger.
Click to show internal directories.
Click to hide internal directories.