Skip to content
Ona Docs

GetDotfilesConfiguration

client.Users.Dotfiles.Get(ctx, body) (*UserDotfileGetResponse, error)
POST/gitpod.v1.UserService/GetDotfilesConfiguration

Gets the dotfiles for a user.

Use this method to:

  • Retrieve user dotfiles

Examples

  • Get dotfiles:

    Retrieves the dotfiles for the current user.

    {}
ParametersExpand Collapse
body UserDotfileGetParams
Empty param.Field[bool]Optional
ReturnsExpand Collapse
type UserDotfileGetResponse struct{…}
DotfilesConfiguration DotfilesConfiguration
Repository stringOptional

The URL of a dotfiles repository.

formaturi

GetDotfilesConfiguration

package main

import (
  "context"
  "fmt"

  "github.com/gitpod-io/gitpod-sdk-go"
  "github.com/gitpod-io/gitpod-sdk-go/option"
)

func main() {
  client := gitpod.NewClient(
    option.WithBearerToken("My Bearer Token"),
  )
  dotfile, err := client.Users.Dotfiles.Get(context.TODO(), gitpod.UserDotfileGetParams{

  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", dotfile.DotfilesConfiguration)
}
{
  "dotfilesConfiguration": {
    "repository": "https://example.com"
  }
}
Returns Examples
{
  "dotfilesConfiguration": {
    "repository": "https://example.com"
  }
}