alpine

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright © 2021 Antoine Martin <antoine@openance.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableService

func EnableService(serviceName string) error

EnableService enables the service named serviceName

func EnsureNetFilter added in v0.1.5

func EnsureNetFilter() error

func ExecuteIfServiceNotStarted

func ExecuteIfServiceNotStarted(serviceName string, fn func() error) error

ExecuteIfServiceNotStarted executes the function fn if the service serviceName is not started.

func ExecuteIfServiceStarted

func ExecuteIfServiceStarted(serviceName string, fn func() error) error

ExecuteIfServiceStarted executes the fn function if the service serviceName is started.

func IsServiceStarted

func IsServiceStarted(serviceName string) (bool, error)

func PretendServiceStarted

func PretendServiceStarted(serviceName string) error

func StartOpenRC

func StartOpenRC() (err error)

func StartService

func StartService(serviceName string) error

StartService start the serviceName service if it is not already started.

func StopService

func StopService(serviceName string) error

StopService stops the serviceName service if it is started.

Types

This section is empty.

Jump to

Keyboard shortcuts

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