debian-mirror-gitlab/lib/gitlab/kubernetes/kubeconfig/entry/user.rb
2021-10-27 15:23:28 +05:30

29 lines
474 B
Ruby

# frozen_string_literal: true
module Gitlab
module Kubernetes
module Kubeconfig
module Entry
class User
attr_reader :name
def initialize(name:, token:)
@name = name
@token = token
end
def to_h
{
name: name,
user: { token: token }
}
end
private
attr_reader :token
end
end
end
end
end