client

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

	SkipAuthRetry     bool
	StaticCertificate bool
	Sudo              bool
}

type Service

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

func NewService

func NewService(name string, runtime client.Runtime, 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)

type ServiceFactory added in v0.7.0

type ServiceFactory struct {
	// 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
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