client

package
v0.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const ExecuteManagementModeAuto executeManagementMode = "auto"
View Source
const ExecuteManagementModeDisabled executeManagementMode = "disabled"
View Source
const ExecuteManagementModeEnabled executeManagementMode = "enabled"

Variables

This section is empty.

Functions

func ExecuteManagementModeFromString added in v0.18.0

func ExecuteManagementModeFromString(in string) (executeManagementMode, error)

Types

type BaseProfileOptions added in v0.7.0

type BaseProfileOptions struct {
	SkipAuthRetry bool
}

type CreateLaunchdServiceOpts added in v0.12.0

type CreateLaunchdServiceOpts struct {
	SsocaExec string

	Directory string
	Name      string

	OpenvpnExec string
	RunAtLoad   bool
	LogDir      string
}

type CreateONCProfileOptions added in v0.12.0

type CreateONCProfileOptions struct {
	SkipAuthRetry bool
	Name          string
}

type CreateProfileOptions added in v0.7.0

type CreateProfileOptions struct {
	SkipAuthRetry bool
}

type CreateTunnelblickProfileOpts added in v0.7.0

type CreateTunnelblickProfileOpts struct {
	SsocaExec     string
	SkipAuthRetry bool

	Directory string
	FileName  string
}

type ExecuteOptions added in v0.7.0

type ExecuteOptions struct {
	Exec      string
	ExtraArgs []string

	ManagementMode executeManagementMode
	SkipAuthRetry  bool
	Sudo           bool
}

type Service

type Service struct {
	svc.ServiceType
	// contains filtered or unexported fields
}

func NewService

func NewService(name string, runtime client.Runtime, logger logrus.FieldLogger, fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner, executableFinder client.ExecutableFinder) *Service

func (Service) BaseProfile added in v0.7.0

func (s Service) BaseProfile(opts BaseProfileOptions) (string, error)

func (Service) CreateLaunchdService added in v0.12.0

func (s Service) CreateLaunchdService(opts CreateLaunchdServiceOpts) (string, string, error)

func (Service) CreateONCProfile added in v0.12.0

func (s Service) CreateONCProfile(opts CreateONCProfileOptions) (*onc.ONC, error)

func (Service) CreateProfile

func (s Service) CreateProfile(opts CreateProfileOptions) (profile.Profile, error)

func (Service) CreateTunnelblickProfile added in v0.7.0

func (s Service) CreateTunnelblickProfile(opts CreateTunnelblickProfileOpts) (string, error)

func (Service) Execute added in v0.7.0

func (s Service) Execute(opts ExecuteOptions) error

func (Service) GetClient

func (s Service) GetClient(skipAuthRetry bool) (svchttpclient.Client, error)

func (Service) Name added in v0.17.0

func (s Service) Name() string

type ServiceFactory added in v0.7.0

type ServiceFactory struct {
	svc.ServiceType
	// contains filtered or unexported fields
}

func NewServiceFactory added in v0.7.0

func NewServiceFactory(runtime client.Runtime, fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner, executableFinder client.ExecutableFinder) ServiceFactory

func (ServiceFactory) New added in v0.7.0

func (sf ServiceFactory) New(name string) *Service

Directories

Path Synopsis
executable
managementfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
profilefakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL