From b846bff65b00ad7a9ed3ab5ee93d16353aee1f18 Mon Sep 17 00:00:00 2001 From: Rhys Jackson Date: Sun, 21 Jan 2018 14:02:01 +0000 Subject: [PATCH] Added k8s_auth --- NAMESPACE | 2 ++ R/k8s_auth.R | 12 ++++++++++++ README.md | 3 ++- man/k8s_auth.Rd | 15 +++++++++++++++ 4 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 R/k8s_auth.R create mode 100644 man/k8s_auth.Rd diff --git a/NAMESPACE b/NAMESPACE index 6b6883b..6680a2a 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -5,7 +5,9 @@ export(createCluster) export(deleteCluster) export(getCluster) export(getServerConfig) +export(k8s_auth) export(listClusters) export(setAddons) export(setClusterLocation) importFrom(googleAuthR,gar_api_generator) +importFrom(googleAuthR,gar_auth) diff --git a/R/k8s_auth.R b/R/k8s_auth.R new file mode 100644 index 0000000..2cac72e --- /dev/null +++ b/R/k8s_auth.R @@ -0,0 +1,12 @@ +#' k8s_auth +#' +#' Calls googleAuthR to authenticate with the Google Cloud Platform +#' @keywords k8s_auth +#' @importFrom googleAuthR gar_auth +#' @export +#' @examples +#' k8s_auth() + +k8s_auth <- function() { + googleAuthR::gar_auth() +} diff --git a/README.md b/README.md index 68b229a..0d40c26 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # googleKubernetesR -An R package for the Google Kubernetes Engine API +An R package for the Google Kubernetes Engine API. Note: This package is in a very early stage of development and not recommended for use in production. ## Thanks A big thank you to Mark Edmondson for the [`googleAuthR`](http://code.markedmondson.me/googleAuthR/) package which is used extensively in this project. @@ -17,6 +17,7 @@ A big thank you to Mark Edmondson for the [`googleAuthR`](http://code.markedmond ## Installation ```r devtools::install_github("RhysJackson/googleKubernetesR") +library(googleKubernetesR) ``` ## Authentication diff --git a/man/k8s_auth.Rd b/man/k8s_auth.Rd new file mode 100644 index 0000000..b92c84f --- /dev/null +++ b/man/k8s_auth.Rd @@ -0,0 +1,15 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/k8s_auth.R +\name{k8s_auth} +\alias{k8s_auth} +\title{k8s_auth} +\usage{ +k8s_auth() +} +\description{ +Calls googleAuthR to authenticate with the Google Cloud Platform +} +\examples{ +k8s_auth() +} +\keyword{k8s_auth}