keys

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKey

func AddKey(jwtToken string, reqBody request.AddKeyReqBody) (response.Key, error)

func AddKeyBasedOnTemplate

func AddKeyBasedOnTemplate(
	jwtToken string,
	reqBody request.AddKeyReqBody,
	keyParam KeyByTemplateParam,
) (response.Key, error)

func ArchiveKey

func ArchiveKey(jwtToken string, keyId string) error

func BulkArchiveKeys

func BulkArchiveKeys(jwtToken string, keyIds []string) error

func GetArchivedKeys

func GetArchivedKeys(jwtToken string) ([]response.Key, error)

func GetKey

func GetKey(jwtToken string) (response.Key, error)

func GetKeys

func GetKeys(jwtToken string, batchIndex int) ([]response.Key, error)

func GetKeysFilteredByType

func GetKeysFilteredByType(jwtToken string, keyType string) ([]response.Key, error)

func GetKeysLinkedToBlock

func GetKeysLinkedToBlock(jwtToken string, keyParam common.ResourceIdParam) ([]response.Key, error)

func GetKeysLinkedToPod

func GetKeysLinkedToPod(jwtToken string, keyParam common.ResourceIdParam) ([]response.Key, error)

func UnarchiveKey

func UnarchiveKey(jwtToken string, keyId string) error

func UpdateKey

func UpdateKey(jwtToken string, reqBody UpdateKeyReqBody, keyId string) (response.Key, error)

func UpdateKeyDescription

func UpdateKeyDescription(jwtToken string, reqBody UpdateKeyDescReqBody, keyId string) (response.Key, error)

Types

type KeyByTemplateParam

type KeyByTemplateParam struct {
	TemplateId    string
	ExcludeBlocks bool
	ExcludePods   bool
	ExcludeTasks  bool
}

type UpdateKeyDescReqBody

type UpdateKeyDescReqBody struct {
	Description string `json:"keyDescription"`
}

type UpdateKeyReqBody

type UpdateKeyReqBody struct {
	Name              *string `json:"keyName"`
	SimpleDescription *string `json:"simpleDescription"`
	Color             *string `json:"color"`
	Tags              *string `json:"tags"`
	KanbanMode        *bool   `json:"kanbanMode"`
}

Jump to

Keyboard shortcuts

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