package ssh

import "github.com/vmware/govmomi/vapi/appliance/access/ssh"

Index

Constants

const Path = "/api/appliance/access/ssh"

Types

type Access

type Access struct {
	Enabled bool `json:"enabled"`
}

Access represents the value to be set for SSH

type Manager

type Manager struct {
	*rest.Client
}

Manager provides convenience methods to get/set enabled state of SSH-based controlled CLI.

func NewManager

func NewManager(client *rest.Client) *Manager

NewManager creates a new Manager with the given client

func (*Manager) Get

func (m *Manager) Get(ctx context.Context) (bool, error)

Get returns enabled state of the SSH-based controlled CLI.

func (*Manager) Set

func (m *Manager) Set(ctx context.Context, inp Access) error

Set enables state of the SSH-based controlled CLI.

Source Files

ssh.go

Version
v0.48.1 (latest)
Published
Feb 11, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
2 months ago

Tools for package owners.