util

package
v0.0.0-...-a232c5a Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserToCSV

func AddUserToCSV(user string, terminationTime time.Time) error

func ClearToken

func ClearToken(message string) error

func Connect

func Connect() error

func DeleteRole

func DeleteRole(name, namespace string) error

func DeleteRoleBinding

func DeleteRoleBinding(name, namespace string) error

DeleteRoleBinding deletes a role binding with the given name and namespace

func DeleteRoleBindingsBelongsToUser

func DeleteRoleBindingsBelongsToUser(user string) error

func DeleteRolesBelongsToUser

func DeleteRolesBelongsToUser(user string) error

func DeleteRowByTerminationTime

func DeleteRowByTerminationTime() error

func DeleteServiceAccount

func DeleteServiceAccount(namespace, name string) error

func DeleteUserFromCSV

func DeleteUserFromCSV(userID string) error

func GenerateToken

func GenerateToken(message string) (string, error)

func Verify

func Verify() error

Types

type Response

type Response struct {
	Status  string `json:"status"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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