Documentation
¶
Index ¶
- func AddResourceUser(c *gin.Context)
- func GenerateSignature(signingSecret string, timestamp string, serializedBlob []byte) (string, error)
- func GetDatadogClient() *datadog.APIClient
- func GetResource(c *gin.Context)
- func GetResourceAccessLevels(c *gin.Context)
- func GetResourceUsers(c *gin.Context)
- func GetResources(c *gin.Context)
- func GetStatus(c *gin.Context)
- func GetUsers(c *gin.Context)
- func NewRouter() *gin.Engine
- func RemoveResourceUser(c *gin.Context)
- type AccessLevel
- type AddResourceUserRequest
- type Cursor
- type Error
- type Resource
- type ResourceAccessLevelsResponse
- type ResourceResponse
- type ResourceUser
- type ResourceUsersResponse
- type ResourcesResponse
- type Route
- type Routes
- type User
- type UsersResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSignature ¶
func GenerateSignature( signingSecret string, timestamp string, serializedBlob []byte, ) (string, error)
GenerateSignature generates a signature for a given payload in a HTTP request
func GetDatadogClient ¶
func GetResourceAccessLevels ¶
GetResourceAccessLevels -
Types ¶
type AccessLevel ¶
type AddResourceUserRequest ¶
type Cursor ¶
type Cursor struct {
NextPage int
}
Cursor is a struct that contains the next page number
type Resource ¶
type Resource struct { // The id of the resource in your system. Opal will provide this id when making requests for the resource to your connector. Id string `json:"id"` // The name of the resource Name string `json:"name"` // The description of the resource. If provided, it will be imported into Opal. Description string `json:"description,omitempty"` }
type ResourceAccessLevelsResponse ¶
type ResourceAccessLevelsResponse struct { // The cursor with which to continue pagination if additional result pages exist. NextCursor *string `json:"next_cursor,omitempty"` AccessLevels []AccessLevel `json:"access_levels"` }
type ResourceResponse ¶
type ResourceResponse struct {
Resource Resource `json:"resource"`
}
type ResourceUser ¶
type ResourceUser struct { // The id of the user in your system. Opal will provide this id when making requests for the user to your connector. UserId string `json:"user_id"` // The email of the user. Opal will use this to associate the user with the corresponding Opal user. Email string `json:"email,omitempty"` AccessLevel AccessLevel `json:"access_level,omitempty"` }
type ResourceUsersResponse ¶
type ResourceUsersResponse struct { // The cursor with which to continue pagination if additional result pages exist. NextCursor *string `json:"next_cursor,omitempty"` Users []ResourceUser `json:"users"` }
type ResourcesResponse ¶
type Route ¶
type Route struct { // Name is the name of this Route. Name string // Method is the string for the HTTP method. ex) GET, POST etc.. Method string // Pattern is the pattern of the URI. Pattern string // HandlerFunc is the handler function of this route. HandlerFunc gin.HandlerFunc }
Route is the information for every URI.
type UsersResponse ¶
Source Files
¶
- api_resources.go
- api_status.go
- api_users.go
- common.go
- datadog_client.go
- model_access_level.go
- model_add_resource_user_request.go
- model_error.go
- model_resource.go
- model_resource_access_levels_response.go
- model_resource_response.go
- model_resource_user.go
- model_resource_users_response.go
- model_resources_response.go
- model_user.go
- model_users_response.go
- routers.go
Click to show internal directories.
Click to hide internal directories.