Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions exit.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ func ExitRaw(rc int, output ...string) {
BaseExit(rc)
}

// Exit prints the plugin output and exits the program
//
// Deprecated, please use Exitf or ExitRaw.
func Exit(rc int, output string, args ...interface{}) {
Exitf(rc, output, args...)
}

func BaseExit(rc int) {
if AllowExit {
os.Exit(rc)
Expand Down
1 change: 1 addition & 0 deletions http/mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
// Features:
// - RegisterQueryMapResponder form query based based on a QueryMap
// - ActivateRecorder to record HTTP requests during the development of tests and examples
// Deprecated: Will be removed in a future version
package checkhttpmock
20 changes: 0 additions & 20 deletions result/overall.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,6 @@ func (s *PartialResult) String() string {
return fmt.Sprintf("[%s] %s", check.StatusText(s.GetStatus()), s.Output)
}

// Deprecated: Will be removed in a future version, use Add() instead
func (o *Overall) AddOK(output string) {
o.Add(check.OK, output)
}

// Deprecated: Will be removed in a future version, use Add() instead
func (o *Overall) AddWarning(output string) {
o.Add(check.Warning, output)
}

// Deprecated: Will be removed in a future version, use Add() instead
func (o *Overall) AddCritical(output string) {
o.Add(check.Critical, output)
}

// Deprecated: Will be removed in a future version, use Add() instead
func (o *Overall) AddUnknown(output string) {
o.Add(check.Unknown, output)
}

// Add State explicitely
// Hint: This will set stateSetExplicitely to true
func (o *Overall) Add(state int, output string) {
Expand Down
2 changes: 1 addition & 1 deletion result/overall_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func ExampleOverall_withSubchecks() {
subcheck.SetState(check.OK)

overall.AddSubcheck(subcheck)
overall.AddOK("bla")
overall.Add(0, "bla")

fmt.Println(overall.GetOutput())
// Output:
Expand Down