github.com/defang-io/defang/src@v0.0.0-20240505002154-bdf411911834/pkg/scope/scope.go (about)

     1  package scope
     2  
     3  type Scope string
     4  
     5  const (
     6  	Admin Scope = "admin"
     7  	Tail  Scope = "tail"
     8  	Read  Scope = "read"
     9  )
    10  
    11  func (s Scope) String() string {
    12  	return string(s)
    13  }
    14  
    15  func All() []Scope {
    16  	return []Scope{Admin, Read, Tail}
    17  }