util

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Copyright 2019 Portworx 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 FromError added in v0.0.8

func FromError(err error) *status.Status

func HTTPStatusFromSdkError added in v0.0.8

func HTTPStatusFromSdkError(err error) int

func IsErrorNotFound added in v0.0.8

func IsErrorNotFound(err error) bool

IsErrorNotFound returns if the given error is due to not found

func OpenLog

func OpenLog(logfile string) (*os.File, error)

Types

type SigIntManager

type SigIntManager struct {
	// contains filtered or unexported fields
}

func NewSigIntManager

func NewSigIntManager(handler func()) *SigIntManager

func (*SigIntManager) Start

func (s *SigIntManager) Start() error

func (*SigIntManager) Stop

func (s *SigIntManager) Stop() error

Jump to

Keyboard shortcuts

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