types

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RobotUser

type RobotUser struct {
	UpdateTime   time.Time `json:"update_time"`
	Description  string    `json:"description"`
	Level        string    `json:"level"`
	Editable     bool      `json:"editable"`
	CreationTime time.Time `json:"creation_time"`
	ExpiresAt    int       `json:"expires_at"`
	Name         string    `json:"name"`
	Secret       string    `json:"secret"`
	Disable      bool      `json:"disable"`
	Duration     int       `json:"duration"`
	Id           int       `json:"id"`
	Permissions  []struct {
		Access []struct {
			Action   string `json:"action"`
			Resource string `json:"resource"`
			Effect   string `json:"effect"`
		} `json:"access"`
		Kind      string `json:"kind"`
		Namespace string `json:"namespace"`
	} `json:"permissions"`
}

type Webhook

type Webhook struct {
	CreationTime time.Time `json:"creation_time"`
	Creator      string    `json:"creator"`
	Description  string    `json:"description"`
	Enabled      bool      `json:"enabled"`
	EventTypes   []string  `json:"event_types"`
	Id           int       `json:"id"`
	Name         string    `json:"name"`
	ProjectId    int       `json:"project_id"`
	Targets      []struct {
		Address        string `json:"address"`
		AuthHeader     string `json:"auth_header"`
		SkipCertVerify bool   `json:"skip_cert_verify"`
		Type           string `json:"type"`
	} `json:"targets"`
	UpdateTime time.Time `json:"update_time"`
}

Jump to

Keyboard shortcuts

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