remoteaccess

package
v1.49.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Roles = struct {
	DevOpsAdmin  Role
	DevOpsUser   Role
	DevOpsViewer Role
}{
	"devops-admin",
	"devops-user",
	"devops-viewer",
}
View Source
var States = struct {
	Accepted State
	Expired  State
	Pending  State
	Rejected State
}{
	"ACCEPTED",
	"EXPIRED",
	"PENDING",
	"REJECTED",
}

Functions

This section is empty.

Types

type Role

type Role string

type Settings

type Settings struct {
	ID            *string `json:"requestId"`     // Request id
	UserId        string  `json:"userId"`        // User id, cannot be changed once created
	Reason        string  `json:"reason"`        // Request reason description, cannot be changed once created
	RequestedDays int     `json:"requestedDays"` // For how many days access is requested, cannot be changed once created
	Role          Role    `json:"role"`          // Requested role, cannot be changed once created
	State         *State  `json:"state"`         // Access request state. Automatically set as `ACCEPTED` on create, state can be changed in subsequent updates.
}

The configuration of the user

func (*Settings) MarshalHCL

func (me *Settings) MarshalHCL(properties hcl.Properties) error

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error

type State

type State string

type UpdateSettings

type UpdateSettings struct {
	State State `json:"state"`
}

Jump to

Keyboard shortcuts

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